Commit | Line | Data |
---|---|---|
0fdf9f81 SC |
1 | cat <<EOF |
2 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
3 | ENTRY(start) | |
4 | ||
5 | SECTIONS { | |
6 | .text ${RELOCATING+${TEXT_START_ADDR}} : | |
7 | { | |
8 | *(.text); | |
bfbdc80f SC |
9 | *(.text1); |
10 | *(.text2); | |
0fdf9f81 SC |
11 | ${RELOCATING+_etext = .}; |
12 | } | |
bfbdc80f SC |
13 | .lit . : |
14 | { | |
15 | *(.lit); | |
16 | ${RELOCATING+_elit = .}; | |
17 | } | |
18 | .data . : | |
0fdf9f81 SC |
19 | { |
20 | *(.data); | |
bfbdc80f SC |
21 | *(.data1); |
22 | *(.data2); | |
0fdf9f81 SC |
23 | ${RELOCATING+_edata = .}; |
24 | ${CONSTRUCTING+CONSTRUCTORS} | |
9de4d8f1 ILT |
25 | ${CONSTRUCTING+ ___CTOR_LIST__ = .;} |
26 | ${CONSTRUCTING+ LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)} | |
27 | *(.ctors) | |
28 | ${CONSTRUCTING+ LONG(0)} | |
29 | ${CONSTRUCTING+ ___CTOR_END__ = .;} | |
30 | ${CONSTRUCTING+ ___DTOR_LIST__ = .;} | |
31 | ${CONSTRUCTING+ LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)} | |
32 | *(.dtors) | |
33 | ${CONSTRUCTING+ LONG(0)} | |
34 | ${CONSTRUCTING+ ___DTOR_END__ = .;} | |
0fdf9f81 | 35 | } |
bfbdc80f | 36 | |
0fdf9f81 SC |
37 | .bss . : |
38 | { | |
39 | *(COMMON) | |
40 | *(.bss) | |
41 | ${RELOCATING+_end = .}; | |
42 | } | |
43 | } | |
44 | EOF |