* emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
[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 .text :
39 {
40 *(.text)
41 /* .gnu.warning sections are handled specially by elf32.em. */
42 *(.gnu.warning)
43 *(.gnu.linkonce.t*)
44 } =0
45 _etext = .;
46 PROVIDE (etext = .);
47 .fini : { *(.fini) } =0
48 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
49 .rodata1 : { *(.rodata1) }
50 /* Adjust the address for the data segment. We want to adjust up to
51 the same address within the page on the next page up. */
52 . = 0x100000;
53 .data :
54 {
55 *(.data)
56 *(.gnu.linkonce.d*)
57 CONSTRUCTORS
58 }
59 .data1 : { *(.data1) }
60 .ctors :
61 {
62 ___ctors = .;
63 *(.ctors)
64 ___ctors_end = .;
65 }
66 .dtors :
67 {
68 ___dtors = .;
69 *(.dtors)
70 ___dtors_end = .;
71 }
72 .got : { *(.got.plt) *(.got) }
73 .dynamic : { *(.dynamic) }
74 /* We want the small data sections together, so single-instruction offsets
75 can access them all, and initialized data all before uninitialized, so
76 we can shorten the on-disk segment size. */
77 .sdata : { *(.sdata) }
78 _edata = .;
79 PROVIDE (edata = .);
80 __bss_start = .;
81 .sbss : { *(.sbss) *(.scommon) }
82 .bss :
83 {
84 *(.dynbss)
85 *(.bss)
86 *(COMMON)
87 }
88 _end = . ;
89 PROVIDE (end = .);
90 /* Stabs debugging sections. */
91 .stab 0 : { *(.stab) }
92 .stabstr 0 : { *(.stabstr) }
93 .stab.excl 0 : { *(.stab.excl) }
94 .stab.exclstr 0 : { *(.stab.exclstr) }
95 .stab.index 0 : { *(.stab.index) }
96 .stab.indexstr 0 : { *(.stab.indexstr) }
97 .comment 0 : { *(.comment) }
98 /* DWARF debug sections.
99 Symbols in the .debug DWARF section are relative to the beginning of the
100 section so we begin .debug at 0. It's not clear yet what needs to happen
101 for the others. */
102 .debug 0 : { *(.debug) }
103 .debug_srcinfo 0 : { *(.debug_srcinfo) }
104 .debug_aranges 0 : { *(.debug_aranges) }
105 .debug_pubnames 0 : { *(.debug_pubnames) }
106 .debug_sfnames 0 : { *(.debug_sfnames) }
107 .line 0 : { *(.line) }
108 /* .stack 0xffffec00 : { _stack = .; *(.stack) }*/
109 .stack 0x200000 : { _stack = .; *(.stack) }
110 /* These must appear regardless of . */
111 }
112 EOF
This page took 0.034486 seconds and 5 git commands to generate.