1 # Linker script for PE.
2 # These are substituted in as variables in order to get '}' in a shell
3 # conditional expansion.
4 INIT='.init : { *(.init) }'
5 FINI='.fini : { *(.fini) }'
7 OUTPUT_FORMAT(${OUTPUT_FORMAT})
10 ENTRY(_mainCRTStartup)
15 .text ${RELOCATING+ 0x401000} :
17 ${RELOCATING+ *(.init);}
19 ${CONSTRUCTING+ ___CTOR_LIST__ = .; LONG (-1); *(.ctor); LONG (0); }
20 ${CONSTRUCTING+ ___DTOR_LIST__ = .; LONG (-1); *(.dtor); LONG (0); }
21 ${RELOCATING+ *(.fini);}
22 ${RELOCATING+ etext = .};
31 .rdata BLOCK(0x1000) :
36 .data BLOCK(0x1000) : {
41 .idata BLOCK(0x1000) :
74 .reloc BLOCK(0x1000) :
87 .stab 0 ${RELOCATING+(NOLOAD)} :
92 .stabstr 0 ${RELOCATING+(NOLOAD)} :