diff options
| author | Frederic Feret <tommy.planet@free.fr> | 2009-08-27 10:12:13 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2009-11-13 18:09:00 +0100 |
| commit | 2f73e42d871e9bed3afccbfd8f4c7098895cc3a3 (patch) | |
| tree | bc68a7b438121c03a23bc42f8fa462a979731757 /libtcc.c | |
| parent | 526c4645048fa469a2941c86a09f4f851a96eb91 (diff) | |
| download | tinycc-2f73e42d871e9bed3afccbfd8f4c7098895cc3a3.tar.gz tinycc-2f73e42d871e9bed3afccbfd8f4c7098895cc3a3.tar.bz2 | |
various fixes and new options for PE format
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
