1 # Linker script for ARM COFF.
2 # Based on i386coff.sc by Ian Taylor <ian@cygnus.com>.
3 test -z "$ENTRY" && ENTRY=_start
4 if test -z "${DATA_ADDR}"; then
5 if test "$LD_FLAG" = "N" || test "$LD_FLAG" = "n"; then
10 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
17 /* We start at 0x8000 because gdb assumes it (see FRAME_CHAIN).
18 This is an artifact of the ARM Demon monitor using the bottom 32k
19 as workspace (shared with the FP instruction emulator if
21 .text ${RELOCATING+ 0x8000} : {
24 ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
25 LONG (-1); *(.ctors); *(.ctor); LONG (0); }
26 ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
27 LONG (-1); *(.dtors); *(.dtor); LONG (0); }
29 ${RELOCATING+ etext = .};
31 .data ${RELOCATING+${DATA_ADDR-0x40000 + (. & 0xffc00fff)}} : {
35 ${RELOCATING+ edata = .};
37 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
45 ${RELOCATING+ __end__ = .};
47 .stab 0 ${RELOCATING+(NOLOAD)} :
51 .stabstr 0 ${RELOCATING+(NOLOAD)} :