1# $MirOS: src/gnu/usr.bin/binutils/ld/scripttempl/m68kaux.sc,v 1.2 2005/03/13 16:07:08 tg Exp $
2#
3# Linker script for A/UX.
4test -z "$ENTRY" && ENTRY=_start
5INIT='.init : { *(.init) }'
6FINI='.fini : { *(.fini) }'
7CTORS='.ctors : { *(.ctors) }'
8DTORS='.dtors : { *(.dtors) }'
9
10cat <<EOF
11OUTPUT_FORMAT("${OUTPUT_FORMAT}")
12${LIB_SEARCH_DIRS}
13
14ENTRY(${ENTRY})
15
16SECTIONS
17{
18  .text ${RELOCATING+ $TEXT_START_ADDR} : {
19    ${RELOCATING+ *(.init)}
20    ${RELOCATING+ *(.fini)}
21    *(.text)
22    ${RELOCATING+ . = ALIGN(4);}
23    ${RELOCATING+ *(.ctors)}
24    ${RELOCATING+ *(.dtors)}
25    ${RELOCATING+ etext = .;}
26    ${RELOCATING+ _etext = .;}
27  } =0x4E714E71
28  .data ${RELOCATING+ $DATA_ALIGNMENT} : {
29    *(.data)
30    ${RELOCATING+ edata = .;}
31    ${RELOCATING+ _edata = .;}
32  }
33  .bss : {
34    *(.bss)
35    *(COMMON)
36    ${RELOCATING+ end = .;}
37    ${RELOCATING+ _end = .;}
38  }
39  ${RELOCATING- ${INIT}}
40  ${RELOCATING- ${FINI}}
41  ${RELOCATING- ${CTORS}}
42  ${RELOCATING- ${DTORS}}
43
44  .comment 0 ${RELOCATING+\(NOLOAD\)} : { [ .comment ] [ .ident ] }
45  .stab 0 ${RELOCATING+\(NOLOAD\)} : { [ .stab ] }
46  .stabstr 0 ${RELOCATING+\(NOLOAD\)} : { [ .stabstr ] }
47}
48EOF
49