From 2f73e42d871e9bed3afccbfd8f4c7098895cc3a3 Mon Sep 17 00:00:00 2001 From: Frederic Feret Date: Thu, 27 Aug 2009 10:12:13 +0200 Subject: various fixes and new options for PE format --- libtcc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index e2027da..dfb000a 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1944,6 +1944,10 @@ TCCState *tcc_new(void) /* XXX: currently the PE linker is not ready to support that */ s->leading_underscore = 1; #endif + + if (s->section_align == 0) + s->section_align = ELF_PAGE_SIZE; + #ifdef TCC_TARGET_I386 s->seg_size = 32; #endif -- cgit v1.3.1