1 # Linker script for ARM 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)
16 ${RELOCATING+ *(.init);}
18 ${RELOCATING+ *(.fini);}
19 ${RELOCATING+ etext = .};
23 .rdata BLOCK(0x1000) :
26 ${CONSTRUCTING+ __CTOR_LIST__ = .; LONG (-1); *(.ctors); LONG (0); }
27 ${CONSTRUCTING+ __DTOR_LIST__ = .; LONG (-1); *(.dtors); LONG (0); }
30 .data BLOCK(0x1000) : {
35 .idata BLOCK(0x1000) :
69 .reloc BLOCK(0x1000) :
75 .drectve BLOCK (0x1000) :
77 ${RELOCATING+ *(.drectve); }
105 ${RELOCATING+ stack = 0x800000 ;}