diff options
| author | grischka <grischka> | 2009-02-16 15:13:29 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:07:08 +0200 |
| commit | 4a8c2229ce1589ac68d0f447561947daf20441d3 (patch) | |
| tree | 09da4cf26ade7ec18f118a2042f5b9845d7206c9 | |
| parent | 3116744bdd9cd573eb5c8abd9e05147a78136dbc (diff) | |
| download | tinycc-4a8c2229ce1589ac68d0f447561947daf20441d3.tar.gz tinycc-4a8c2229ce1589ac68d0f447561947daf20441d3.tar.bz2 | |
win32: allow user segments as writable & executable
| -rw-r--r-- | tccpe.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -343,10 +343,10 @@ enum { sec_data , sec_bss , sec_idata , + sec_other , sec_rsrc , sec_stab , sec_reloc , - sec_last }; @@ -355,6 +355,7 @@ ST_DATA DWORD pe_sec_flags[] = { 0xC0000040, /* ".data" , */ 0xC0000080, /* ".bss" , */ 0x40000040, /* ".idata" , */ + 0xE0000060, /* < other > , */ 0x40000040, /* ".rsrc" , */ 0x42000802, /* ".stab" , */ 0x42000040, /* ".reloc" , */ @@ -960,6 +961,7 @@ ST_FN int pe_section_class(Section *s) return sec_rsrc; if (0 == strcmp(name, ".iedat")) return sec_idata; + return sec_other; } else if (type == SHT_NOBITS) { if (flags & SHF_WRITE) return sec_bss; |
