* scripttempl/v850.sc (.zdata): Add this before .text.
[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 .zdata : { *(.zdata) *(.zrodata) *(.zbss*) }
39 .text :
40 {
41 *(.text)
42 /* .gnu.warning sections are handled specially by elf32.em. */
43 *(.gnu.warning)
44 *(.gnu.linkonce.t*)
45 } =0
46 _etext = .;
47 PROVIDE (etext = .);
48 .fini : { *(.fini) } =0
49 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
50 .rodata1 : { *(.rodata1) }
51 /* Adjust the address for the data segment. We want to adjust up to
52 the same address within the page on the next page up. */
53 . = 0x100000;
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 .tdata : { *(.tdata) }
76 /* We want the small data sections together, so single-instruction offsets
77 can access them all, and initialized data all before uninitialized, so
78 we can shorten the on-disk segment size. */
79 .sdata : { *(.rosdata) *(.sdata) }
80 _edata = .;
81 PROVIDE (edata = .);
82 __bss_start = .;
83 .sbss : { *(.sbss) *(.scommon) }
84 .bss :
85 {
86 *(.dynbss)
87 *(.bss)
88 *(COMMON)
89 }
90 _end = . ;
91 PROVIDE (end = .);
92 /* Stabs debugging sections. */
93 .stab 0 : { *(.stab) }
94 .stabstr 0 : { *(.stabstr) }
95 .stab.excl 0 : { *(.stab.excl) }
96 .stab.exclstr 0 : { *(.stab.exclstr) }
97 .stab.index 0 : { *(.stab.index) }
98 .stab.indexstr 0 : { *(.stab.indexstr) }
99 .comment 0 : { *(.comment) }
100 /* DWARF debug sections.
101 Symbols in the .debug DWARF section are relative to the beginning of the
102 section so we begin .debug at 0. It's not clear yet what needs to happen
103 for the others. */
104 .debug 0 : { *(.debug) }
105 .debug_srcinfo 0 : { *(.debug_srcinfo) }
106 .debug_aranges 0 : { *(.debug_aranges) }
107 .debug_pubnames 0 : { *(.debug_pubnames) }
108 .debug_sfnames 0 : { *(.debug_sfnames) }
109 .line 0 : { *(.line) }
110 /* .stack 0xffffec00 : { _stack = .; *(.stack) }*/
111 .stack 0x200000 : { _stack = .; *(.stack) }
112 /* These must appear regardless of . */
113 }
114 EOF
This page took 0.059432 seconds and 5 git commands to generate.