* scriptempl/v850.sc: Move all "normal" sections into
[deliverable/binutils-gdb.git] / ld / scripttempl / v850.sc
1 cat << EOF
2 OUTPUT_FORMAT("elf32-v850", "elf32-v850",
3 "elf32-v850")
4 OUTPUT_ARCH(v850)
5 ENTRY(_start)
6 SEARCH_DIR(.);
7 /*/critters/slug/grossman/install/sun4/v850-elf/lib*/
8 SECTIONS
9 {
10 /* Read-only sections, merged into text segment: */
11 . = 0x160;
12 .interp : { *(.interp) }
13 .hash : { *(.hash) }
14 .dynsym : { *(.dynsym) }
15 .dynstr : { *(.dynstr) }
16 .rel.text : { *(.rel.text) }
17 .rela.text : { *(.rela.text) }
18 .rel.data : { *(.rel.data) }
19 .rela.data : { *(.rela.data) }
20 .rel.rodata : { *(.rel.rodata) }
21 .rela.rodata : { *(.rela.rodata) }
22 .rel.got : { *(.rel.got) }
23 .rela.got : { *(.rela.got) }
24 .rel.ctors : { *(.rel.ctors) }
25 .rela.ctors : { *(.rela.ctors) }
26 .rel.dtors : { *(.rel.dtors) }
27 .rela.dtors : { *(.rela.dtors) }
28 .rel.init : { *(.rel.init) }
29 .rela.init : { *(.rela.init) }
30 .rel.fini : { *(.rel.fini) }
31 .rela.fini : { *(.rela.fini) }
32 .rel.bss : { *(.rel.bss) }
33 .rela.bss : { *(.rela.bss) }
34 .rel.plt : { *(.rel.plt) }
35 .rela.plt : { *(.rela.plt) }
36 .init : { *(.init) } =0
37 .plt : { *(.plt) }
38 . = 0x100000;
39 .zdata : { *(.zdata) *(.zrodata) *(.zbss*) }
40 .text :
41 {
42 *(.text)
43 /* .gnu.warning sections are handled specially by elf32.em. */
44 *(.gnu.warning)
45 *(.gnu.linkonce.t*)
46 } =0
47 _etext = .;
48 PROVIDE (etext = .);
49 .fini : { *(.fini) } =0
50 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
51 .rodata1 : { *(.rodata1) }
52 /* Adjust the address for the data segment. We want to adjust up to
53 the same address within the page on the next page up. */
54 .data :
55 {
56 *(.data)
57 *(.gnu.linkonce.d*)
58 CONSTRUCTORS
59 }
60 .data1 : { *(.data1) }
61 .ctors :
62 {
63 ___ctors = .;
64 *(.ctors)
65 ___ctors_end = .;
66 }
67 .dtors :
68 {
69 ___dtors = .;
70 *(.dtors)
71 ___dtors_end = .;
72 }
73 .got : { *(.got.plt) *(.got) }
74 .dynamic : { *(.dynamic) }
75 ${RELOCATING+ __ep = ALIGN (4) + 0x80;}
76 .tdata : { *(.tdata) }
77 /* We want the small data sections together, so single-instruction offsets
78 can access them all, and initialized data all before uninitialized, so
79 we can shorten the on-disk segment size. */
80 ${RELOCATING+ __gp = ALIGN(4) + 0x8000;}
81 .sdata : { *(.rosdata) *(.sdata) }
82 _edata = .;
83 PROVIDE (edata = .);
84 __bss_start = .;
85 .sbss : { *(.sbss) *(.scommon) }
86 .bss :
87 {
88 *(.dynbss)
89 *(.bss)
90 *(COMMON)
91 }
92 _end = . ;
93 PROVIDE (end = .);
94 /* Stabs debugging sections. */
95 .stab 0 : { *(.stab) }
96 .stabstr 0 : { *(.stabstr) }
97 .stab.excl 0 : { *(.stab.excl) }
98 .stab.exclstr 0 : { *(.stab.exclstr) }
99 .stab.index 0 : { *(.stab.index) }
100 .stab.indexstr 0 : { *(.stab.indexstr) }
101 .comment 0 : { *(.comment) }
102 /* DWARF debug sections.
103 Symbols in the .debug DWARF section are relative to the beginning of the
104 section so we begin .debug at 0. It's not clear yet what needs to happen
105 for the others. */
106 .debug 0 : { *(.debug) }
107 .debug_srcinfo 0 : { *(.debug_srcinfo) }
108 .debug_aranges 0 : { *(.debug_aranges) }
109 .debug_pubnames 0 : { *(.debug_pubnames) }
110 .debug_sfnames 0 : { *(.debug_sfnames) }
111 .line 0 : { *(.line) }
112 /* .stack 0xffffec00 : { _stack = .; *(.stack) }*/
113 .stack 0x200000 : { _stack = .; *(.stack) }
114 /* These must appear regardless of . */
115 }
116 EOF
This page took 0.035649 seconds and 5 git commands to generate.