Commit | Line | Data |
---|---|---|
7192be38 NC |
1 | cat << EOF |
2 | OUTPUT_FORMAT("elf32-fr30", "elf32-fr30", | |
3 | "elf32-fr30") | |
4 | OUTPUT_ARCH(fr30) | |
5 | ENTRY(_start) | |
6 | SEARCH_DIR(.); | |
7 | SECTIONS | |
8 | { | |
9 | /* Read-only sections, merged into text segment: */ | |
10 | . = ${TEXT_START_ADDR}; | |
11 | .interp : { *(.interp) } | |
12 | .hash : { *(.hash) } | |
13 | .dynsym : { *(.dynsym) } | |
14 | .dynstr : { *(.dynstr) } | |
15 | .rel.text : { *(.rel.text) } | |
16 | .rela.text : { *(.rela.text) } | |
17 | .rel.data : { *(.rel.data) } | |
18 | .rela.data : { *(.rela.data) } | |
19 | .rel.rodata : { *(.rel.rodata) } | |
20 | .rela.rodata : { *(.rela.rodata) } | |
21 | .rel.got : { *(.rel.got) } | |
22 | .rela.got : { *(.rela.got) } | |
23 | .rel.ctors : { *(.rel.ctors) } | |
24 | .rela.ctors : { *(.rela.ctors) } | |
25 | .rel.dtors : { *(.rel.dtors) } | |
26 | .rela.dtors : { *(.rela.dtors) } | |
27 | .rel.init : { *(.rel.init) } | |
28 | .rela.init : { *(.rela.init) } | |
29 | .rel.fini : { *(.rel.fini) } | |
30 | .rela.fini : { *(.rela.fini) } | |
31 | .rel.bss : { *(.rel.bss) } | |
32 | .rela.bss : { *(.rela.bss) } | |
33 | .rel.plt : { *(.rel.plt) } | |
34 | .rela.plt : { *(.rela.plt) } | |
35 | .init : { KEEP (*(.init)) } =0 | |
36 | .plt : { *(.plt) } | |
37 | ||
38 | .text : { | |
39 | *(.text) | |
40 | ${RELOCATING+*(.text.*)} | |
41 | /* .gnu.warning sections are handled specially by elf32.em. */ | |
42 | *(.gnu.warning) | |
43 | *(.gnu.linkonce.t*) | |
44 | } =0 | |
45 | ||
46 | ${RELOCATING+_etext = .;} | |
47 | ${RELOCATING+PROVIDE (etext = .);} | |
48 | ||
49 | .fini : { KEEP (*(.fini)) } =0 | |
50 | .rodata : { *(.rodata) ${RELOCATING+*(.rodata.*)} *(.gnu.linkonce.r*) } | |
51 | .rodata1 : { *(.rodata1) } | |
52 | ||
53 | .data : { | |
54 | *(.data) | |
55 | ${RELOCATING+*(.data.*)} | |
56 | *(.gnu.linkonce.d*) | |
57 | CONSTRUCTORS | |
58 | } | |
59 | .data1 : { *(.data1) } | |
60 | .ctors : { | |
61 | ${RELOCATING+___ctors = .;} | |
62 | KEEP (*(.ctors)) | |
63 | ${RELOCATING+___ctors_end = .;} | |
64 | } | |
65 | ||
66 | .dtors : { | |
67 | ${RELOCATING+___dtors = .;} | |
68 | KEEP (*(.dtors)) | |
69 | ${RELOCATING+___dtors_end = .;} | |
70 | } | |
71 | ||
72 | .got : { *(.got.plt) *(.got) } | |
73 | .dynamic : { *(.dynamic) } | |
74 | ||
75 | ${RELOCATING+_edata = . ;} | |
76 | ${RELOCATING+PROVIDE (edata = _edata);} | |
77 | ||
78 | .bss : | |
79 | { | |
80 | ${RELOCATING+__bss_start = . ;} | |
81 | *(.dynbss) | |
82 | *(.bss) | |
83 | *(COMMON) | |
84 | } | |
85 | ||
86 | ${RELOCATING+_end = . ;} | |
87 | ${RELOCATING+PROVIDE (end = .);} | |
88 | ||
89 | /* Stabs debugging sections. */ | |
90 | .stab 0 : { *(.stab) } | |
91 | .stabstr 0 : { *(.stabstr) } | |
92 | .stab.excl 0 : { *(.stab.excl) } | |
93 | .stab.exclstr 0 : { *(.stab.exclstr) } | |
94 | .stab.index 0 : { *(.stab.index) } | |
95 | .stab.indexstr 0 : { *(.stab.indexstr) } | |
96 | .comment 0 : { *(.comment) } | |
97 | ||
98 | /* DWARF debug sections. | |
99 | Symbols in the DWARF debugging sections are relative to the beginning | |
100 | of the section so we begin them at 0. */ | |
101 | ||
102 | /* DWARF 1 */ | |
103 | .debug 0 : { *(.debug) } | |
104 | .line 0 : { *(.line) } | |
105 | ||
106 | /* GNU DWARF 1 extensions */ | |
107 | .debug_srcinfo 0 : { *(.debug_srcinfo) } | |
108 | .debug_sfnames 0 : { *(.debug_sfnames) } | |
109 | ||
110 | /* DWARF 1.1 and DWARF 2 */ | |
111 | .debug_aranges 0 : { *(.debug_aranges) } | |
112 | .debug_pubnames 0 : { *(.debug_pubnames) } | |
113 | ||
114 | /* DWARF 2 */ | |
115 | .debug_info 0 : { *(.debug_info) } | |
116 | .debug_abbrev 0 : { *(.debug_abbrev) } | |
117 | .debug_line 0 : { *(.debug_line) } | |
118 | .debug_frame 0 : { *(.debug_frame) } | |
119 | .debug_str 0 : { *(.debug_str) } | |
120 | .debug_loc 0 : { *(.debug_loc) } | |
121 | .debug_macinfo 0 : { *(.debug_macinfo) } | |
122 | ||
123 | /* SGI/MIPS DWARF 2 extensions */ | |
124 | .debug_weaknames 0 : { *(.debug_weaknames) } | |
125 | .debug_funcnames 0 : { *(.debug_funcnames) } | |
126 | .debug_typenames 0 : { *(.debug_typenames) } | |
127 | .debug_varnames 0 : { *(.debug_varnames) } | |
128 | ||
129 | /* User stack */ | |
130 | .stack 0x200000 : { | |
131 | ${RELOCATING+__stack = .;} | |
132 | *(.stack) | |
133 | } | |
134 | /* These must appear regardless of . */ | |
135 | } | |
136 | EOF |