1 # Linker script for 386 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 ${RELOCATING+ *(.fini);}
20 ${RELOCATING+ etext = .};
29 .rdata BLOCK(0x1000) :
34 .data BLOCK(0x1000) : {
39 .idata BLOCK(0x1000) :
72 .reloc BLOCK(0x1000) :
85 .stab 0 ${RELOCATING+(NOLOAD)} :
90 .stabstr 0 ${RELOCATING+(NOLOAD)} :