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}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_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} : {
27 ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
28 LONG (-1); *(.ctors); *(.ctor); LONG (0); }
29 ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
30 LONG (-1); *(.dtors); *(.dtor); LONG (0); }
32 ${RELOCATING+ etext = .;}
33 ${RELOCATING+ _etext = .;}
35 .data ${RELOCATING+${DATA_ADDR-0x40000 + (. & 0xfffc0fff)}} : {
36 ${RELOCATING+ __data_start__ = . ;}
38 ${RELOCATING+ __data_end__ = . ;}
39 ${RELOCATING+ edata = .;}
40 ${RELOCATING+ _edata = .;}
42 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
44 ${RELOCATING+ __bss_start__ = . ;}
47 ${RELOCATING+ __bss_end__ = . ;}
50 ${RELOCATING+ end = .;}
51 ${RELOCATING+ _end = .;}
52 ${RELOCATING+ __end__ = .;}
54 .stab 0 ${RELOCATING+(NOLOAD)} :
58 .stabstr 0 ${RELOCATING+(NOLOAD)} :