* scripttempl/v850.sc: New linker script for the V850.
[deliverable/binutils-gdb.git] / ld / scripttempl / v850.sc
1 OUTPUT_FORMAT("elf32-v850", "elf32-v850",
2 "elf32-v850")
3 OUTPUT_ARCH(v850)
4 ENTRY(_start)
5 SEARCH_DIR(.);
6 /*/critters/slug/grossman/install/sun4/v850-elf/lib*/
7 SECTIONS
8 {
9 /* Read-only sections, merged into text segment: */
10 . = 0x160;
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 : { *(.init) } =0
36 .plt : { *(.plt) }
37 .text :
38 {
39 *(.text)
40 /* .gnu.warning sections are handled specially by elf32.em. */
41 *(.gnu.warning)
42 *(.gnu.linkonce.t*)
43 } =0
44 _etext = .;
45 PROVIDE (etext = .);
46 .fini : { *(.fini) } =0
47 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
48 .rodata1 : { *(.rodata1) }
49 /* Adjust the address for the data segment. We want to adjust up to
50 the same address within the page on the next page up. */
51 . = 0x100000;
52 .data :
53 {
54 *(.data)
55 *(.gnu.linkonce.d*)
56 CONSTRUCTORS
57 }
58 .data1 : { *(.data1) }
59 .ctors :
60 {
61 ___ctors = .;
62 *(.ctors)
63 ___ctors_end = .;
64 }
65 .dtors :
66 {
67 ___dtors = .;
68 *(.dtors)
69 ___dtors_end = .;
70 }
71 .got : { *(.got.plt) *(.got) }
72 .dynamic : { *(.dynamic) }
73 /* We want the small data sections together, so single-instruction offsets
74 can access them all, and initialized data all before uninitialized, so
75 we can shorten the on-disk segment size. */
76 .sdata : { *(.sdata) }
77 _edata = .;
78 PROVIDE (edata = .);
79 __bss_start = .;
80 .sbss : { *(.sbss) *(.scommon) }
81 .bss :
82 {
83 *(.dynbss)
84 *(.bss)
85 *(COMMON)
86 }
87 _end = . ;
88 PROVIDE (end = .);
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 /* DWARF debug sections.
98 Symbols in the .debug DWARF section are relative to the beginning of the
99 section so we begin .debug at 0. It's not clear yet what needs to happen
100 for the others. */
101 .debug 0 : { *(.debug) }
102 .debug_srcinfo 0 : { *(.debug_srcinfo) }
103 .debug_aranges 0 : { *(.debug_aranges) }
104 .debug_pubnames 0 : { *(.debug_pubnames) }
105 .debug_sfnames 0 : { *(.debug_sfnames) }
106 .line 0 : { *(.line) }
107 /* .stack 0xffffec00 : { _stack = .; *(.stack) }*/
108 .stack 0x200000 : { _stack = .; *(.stack) }
109 /* These must appear regardless of . */
110 }
This page took 0.036594 seconds and 5 git commands to generate.