Only provide ENTRY on final link.
[deliverable/binutils-gdb.git] / ld / scripttempl / sa29200.sc
CommitLineData
252b5132
RH
1cat <<EOF
2OUTPUT_FORMAT("${OUTPUT_FORMAT}")
596d6d91 3${RELOCATING+ENTRY (start)}
252b5132
RH
4
5SECTIONS {
6 .text ${RELOCATING+${TEXT_START_ADDR}} :
7 {
8 *(.text);
9 *(.text1);
10 *(.text2);
11 ${RELOCATING+_etext = .};
12 }
13 .lit ALIGN(4) :
14 {
15 *(.lit);
16 ${RELOCATING+_elit = .};
17 }
18 .data ALIGN(4) :
19 {
20 *(.data);
21 *(.data1);
22 *(.data2);
23 ${RELOCATING+_edata = .};
24 ${CONSTRUCTING+CONSTRUCTORS}
25 ${CONSTRUCTING+ ___CTOR_LIST__ = .;}
26 ${CONSTRUCTING+ LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)}
27 ${CONSTRUCTING+ *(.ctors)}
28 ${CONSTRUCTING+ LONG(0)}
29 ${CONSTRUCTING+ ___CTOR_END__ = .;}
30 ${CONSTRUCTING+ ___DTOR_LIST__ = .;}
31 ${CONSTRUCTING+ LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)}
32 ${CONSTRUCTING+ *(.dtors)}
33 ${CONSTRUCTING+ LONG(0)}
34 ${CONSTRUCTING+ ___DTOR_END__ = .;}
35 }
36
37 .bss ALIGN(4) :
38 {
39 *(COMMON)
40 *(.bss)
41 ${RELOCATING+_end = .};
42 }
43}
44EOF
This page took 0.405172 seconds and 4 git commands to generate.