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 # These are substituted in as variables in order to get '}' in a shell
11 # conditional expansion.
22 OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}")
29 /* We start at 0x8000 because gdb assumes it (see FRAME_CHAIN).
30 This is an artifact of the ARM Demon monitor using the bottom 32k
31 as workspace (shared with the FP instruction emulator if
33 .text ${RELOCATING+ 0x8000} : {
39 ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
40 LONG (-1); *(.ctors); *(.ctor); LONG (0); }
41 ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
42 LONG (-1); *(.dtors); *(.dtor); LONG (0); }
44 ${RELOCATING+ etext = .;}
45 ${RELOCATING+ _etext = .;}
47 .data ${RELOCATING+${DATA_ADDR-0x40000 + (. & 0xfffc0fff)}} : {
48 ${RELOCATING+ __data_start__ = . ;}
51 ${RELOCATING+*(.gcc_exc*)}
52 ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
53 ${RELOCATING+*(.eh_fram*)}
54 ${RELOCATING+___EH_FRAME_END__ = . ;}
55 ${RELOCATING+LONG(0);}
57 ${RELOCATING+ __data_end__ = . ;}
58 ${RELOCATING+ edata = .;}
59 ${RELOCATING+ _edata = .;}
61 ${CONSTRUCTING+${RELOCATING-$CTOR}}
62 ${CONSTRUCTING+${RELOCATING-$DTOR}}
63 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
65 ${RELOCATING+ __bss_start__ = . ;}
68 ${RELOCATING+ __bss_end__ = . ;}
71 ${RELOCATING+ end = .;}
72 ${RELOCATING+ _end = .;}
73 ${RELOCATING+ __end__ = .;}
75 .stab 0 ${RELOCATING+(NOLOAD)} :
79 .stabstr 0 ${RELOCATING+(NOLOAD)} :