Deleted Added
full compact
ldscript.powerpc64 (272888) ldscript.powerpc64 (277334)
1/* $FreeBSD: head/sys/conf/ldscript.powerpc64 272888 2014-10-10 06:24:09Z bapt $ */
1/* $FreeBSD: head/sys/conf/ldscript.powerpc64 277334 2015-01-18 18:32:43Z nwhitehorn $ */
2
3OUTPUT_FORMAT("elf64-powerpc-freebsd", "elf64-powerpc-freebsd",
4 "elf64-powerpc-freebsd")
5OUTPUT_ARCH(powerpc:common64)
6ENTRY(__start)
7SEARCH_DIR(/usr/lib);
8PROVIDE (__stack = 0);
9SECTIONS
10{
11 /* Read-only sections, merged into text segment: */
12
13 . = kernbase + SIZEOF_HEADERS;
2
3OUTPUT_FORMAT("elf64-powerpc-freebsd", "elf64-powerpc-freebsd",
4 "elf64-powerpc-freebsd")
5OUTPUT_ARCH(powerpc:common64)
6ENTRY(__start)
7SEARCH_DIR(/usr/lib);
8PROVIDE (__stack = 0);
9SECTIONS
10{
11 /* Read-only sections, merged into text segment: */
12
13 . = kernbase + SIZEOF_HEADERS;
14 PROVIDE (begin = . - SIZEOF_HEADERS);
14
15 .text :
16 {
17 *(.text)
18 *(.stub)
19 /* .gnu.warning sections are handled specially by elf32.em. */
20 *(.gnu.warning)
21 *(.gnu.linkonce.t*)
22 } =0
23 _etext = .;
24 PROVIDE (etext = .);
25
26 .interp : { *(.interp) }
27 .hash : { *(.hash) }
28 .dynsym : { *(.dynsym) }
29 .dynstr : { *(.dynstr) }
30 .gnu.version : { *(.gnu.version) }
31 .gnu.version_d : { *(.gnu.version_d) }
32 .gnu.version_r : { *(.gnu.version_r) }
33 .rela.text :
34 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
35 .rela.data :
36 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
37 .rela.rodata :
38 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
39 .rela.got : { *(.rela.got) }
40 .rela.got1 : { *(.rela.got1) }
41 .rela.got2 : { *(.rela.got2) }
42 .rela.ctors : { *(.rela.ctors) }
43 .rela.dtors : { *(.rela.dtors) }
44 .rela.init : { *(.rela.init) }
45 .rela.fini : { *(.rela.fini) }
46 .rela.bss : { *(.rela.bss) }
47 .rela.plt : { *(.rela.plt) }
48 .rela.sdata : { *(.rela.sdata) }
49 .rela.sbss : { *(.rela.sbss) }
50 .rela.sdata2 : { *(.rela.sdata2) }
51 .rela.sbss2 : { *(.rela.sbss2) }
52
53 .init : { *(.init) } =0
54 .fini : { *(.fini) } =0
55 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
56 .rodata1 : { *(.rodata1) }
57 .sdata2 : { *(.sdata2) }
58 .sbss2 : { *(.sbss2) }
59 /* Adjust the address for the data segment to the next page up. */
60 . = ALIGN(4096);
61 .data :
62 {
63 *(.data)
64 *(.gnu.linkonce.d*)
65 CONSTRUCTORS
66 }
67 .data1 : { *(.data1) }
68 .toc1 : ALIGN(8) { *(.toc1) }
69 .opd : ALIGN(8) { KEEP (*(.opd)) }
70 .branch_lt : ALIGN(8) { *(.branch_lt) }
15
16 .text :
17 {
18 *(.text)
19 *(.stub)
20 /* .gnu.warning sections are handled specially by elf32.em. */
21 *(.gnu.warning)
22 *(.gnu.linkonce.t*)
23 } =0
24 _etext = .;
25 PROVIDE (etext = .);
26
27 .interp : { *(.interp) }
28 .hash : { *(.hash) }
29 .dynsym : { *(.dynsym) }
30 .dynstr : { *(.dynstr) }
31 .gnu.version : { *(.gnu.version) }
32 .gnu.version_d : { *(.gnu.version_d) }
33 .gnu.version_r : { *(.gnu.version_r) }
34 .rela.text :
35 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
36 .rela.data :
37 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
38 .rela.rodata :
39 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
40 .rela.got : { *(.rela.got) }
41 .rela.got1 : { *(.rela.got1) }
42 .rela.got2 : { *(.rela.got2) }
43 .rela.ctors : { *(.rela.ctors) }
44 .rela.dtors : { *(.rela.dtors) }
45 .rela.init : { *(.rela.init) }
46 .rela.fini : { *(.rela.fini) }
47 .rela.bss : { *(.rela.bss) }
48 .rela.plt : { *(.rela.plt) }
49 .rela.sdata : { *(.rela.sdata) }
50 .rela.sbss : { *(.rela.sbss) }
51 .rela.sdata2 : { *(.rela.sdata2) }
52 .rela.sbss2 : { *(.rela.sbss2) }
53
54 .init : { *(.init) } =0
55 .fini : { *(.fini) } =0
56 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
57 .rodata1 : { *(.rodata1) }
58 .sdata2 : { *(.sdata2) }
59 .sbss2 : { *(.sbss2) }
60 /* Adjust the address for the data segment to the next page up. */
61 . = ALIGN(4096);
62 .data :
63 {
64 *(.data)
65 *(.gnu.linkonce.d*)
66 CONSTRUCTORS
67 }
68 .data1 : { *(.data1) }
69 .toc1 : ALIGN(8) { *(.toc1) }
70 .opd : ALIGN(8) { KEEP (*(.opd)) }
71 .branch_lt : ALIGN(8) { *(.branch_lt) }
71 .got : ALIGN(8) { *(.got .toc) }
72 .got : ALIGN(8) { __tocbase = .; *(.got .toc) }
72
73 .dynamic : { *(.dynamic) }
74 /* Put .ctors and .dtors next to the .got2 section, so that the pointers
75 get relocated with -mrelocatable. Also put in the .fixup pointers.
76 The current compiler no longer needs this, but keep it around for 2.7.2 */
77 PROVIDE (_GOT2_START_ = .);
78 .got2 : { *(.got2) }
79 PROVIDE (__CTOR_LIST__ = .);
80 .ctors : { *(.ctors) }
81 PROVIDE (__CTOR_END__ = .);
82 PROVIDE (__DTOR_LIST__ = .);
83 .dtors : { *(.dtors) }
84 PROVIDE (__DTOR_END__ = .);
85 PROVIDE (_FIXUP_START_ = .);
86 .fixup : { *(.fixup) }
87 PROVIDE (_FIXUP_END_ = .);
88 PROVIDE (_GOT2_END_ = .);
89 /* We want the small data sections together, so single-instruction offsets
90 can access them all, and initialized data all before uninitialized, so
91 we can shorten the on-disk segment size. */
92 .sdata : { *(.sdata) }
93 _edata = .;
94 PROVIDE (edata = .);
95 .sbss :
96 {
97 PROVIDE (__sbss_start = .);
98 *(.sbss)
99 *(.scommon)
100 *(.dynsbss)
101 PROVIDE (__sbss_end = .);
102 }
103 .plt : { *(.plt) }
104 .bss :
105 {
106 PROVIDE (__bss_start = .);
107 *(.dynbss)
108 *(.bss)
109 *(COMMON)
110 }
111 _end = . ;
112 PROVIDE (end = .);
113 /* Stabs debugging sections. */
114 .stab 0 : { *(.stab) }
115 .stabstr 0 : { *(.stabstr) }
116 /* DWARF debug sections.
117 Symbols in the DWARF debugging sections are relative to the beginning
118 of the section so we begin them at 0. */
119 /* DWARF 1 */
120 .debug 0 : { *(.debug) }
121 .line 0 : { *(.line) }
122 /* GNU DWARF 1 extensions */
123 .debug_srcinfo 0 : { *(.debug_srcinfo) }
124 .debug_sfnames 0 : { *(.debug_sfnames) }
125 /* DWARF 1.1 and DWARF 2 */
126 .debug_aranges 0 : { *(.debug_aranges) }
127 .debug_pubnames 0 : { *(.debug_pubnames) }
128 /* DWARF 2 */
129 .debug_info 0 : { *(.debug_info) }
130 .debug_abbrev 0 : { *(.debug_abbrev) }
131 .debug_line 0 : { *(.debug_line) }
132 .debug_frame 0 : { *(.debug_frame) }
133 .debug_str 0 : { *(.debug_str) }
134 .debug_loc 0 : { *(.debug_loc) }
135 .debug_macinfo 0 : { *(.debug_macinfo) }
136 /* SGI/MIPS DWARF 2 extensions */
137 .debug_weaknames 0 : { *(.debug_weaknames) }
138 .debug_funcnames 0 : { *(.debug_funcnames) }
139 .debug_typenames 0 : { *(.debug_typenames) }
140 .debug_varnames 0 : { *(.debug_varnames) }
141 /* These must appear regardless of . */
142}
143
73
74 .dynamic : { *(.dynamic) }
75 /* Put .ctors and .dtors next to the .got2 section, so that the pointers
76 get relocated with -mrelocatable. Also put in the .fixup pointers.
77 The current compiler no longer needs this, but keep it around for 2.7.2 */
78 PROVIDE (_GOT2_START_ = .);
79 .got2 : { *(.got2) }
80 PROVIDE (__CTOR_LIST__ = .);
81 .ctors : { *(.ctors) }
82 PROVIDE (__CTOR_END__ = .);
83 PROVIDE (__DTOR_LIST__ = .);
84 .dtors : { *(.dtors) }
85 PROVIDE (__DTOR_END__ = .);
86 PROVIDE (_FIXUP_START_ = .);
87 .fixup : { *(.fixup) }
88 PROVIDE (_FIXUP_END_ = .);
89 PROVIDE (_GOT2_END_ = .);
90 /* We want the small data sections together, so single-instruction offsets
91 can access them all, and initialized data all before uninitialized, so
92 we can shorten the on-disk segment size. */
93 .sdata : { *(.sdata) }
94 _edata = .;
95 PROVIDE (edata = .);
96 .sbss :
97 {
98 PROVIDE (__sbss_start = .);
99 *(.sbss)
100 *(.scommon)
101 *(.dynsbss)
102 PROVIDE (__sbss_end = .);
103 }
104 .plt : { *(.plt) }
105 .bss :
106 {
107 PROVIDE (__bss_start = .);
108 *(.dynbss)
109 *(.bss)
110 *(COMMON)
111 }
112 _end = . ;
113 PROVIDE (end = .);
114 /* Stabs debugging sections. */
115 .stab 0 : { *(.stab) }
116 .stabstr 0 : { *(.stabstr) }
117 /* DWARF debug sections.
118 Symbols in the DWARF debugging sections are relative to the beginning
119 of the section so we begin them at 0. */
120 /* DWARF 1 */
121 .debug 0 : { *(.debug) }
122 .line 0 : { *(.line) }
123 /* GNU DWARF 1 extensions */
124 .debug_srcinfo 0 : { *(.debug_srcinfo) }
125 .debug_sfnames 0 : { *(.debug_sfnames) }
126 /* DWARF 1.1 and DWARF 2 */
127 .debug_aranges 0 : { *(.debug_aranges) }
128 .debug_pubnames 0 : { *(.debug_pubnames) }
129 /* DWARF 2 */
130 .debug_info 0 : { *(.debug_info) }
131 .debug_abbrev 0 : { *(.debug_abbrev) }
132 .debug_line 0 : { *(.debug_line) }
133 .debug_frame 0 : { *(.debug_frame) }
134 .debug_str 0 : { *(.debug_str) }
135 .debug_loc 0 : { *(.debug_loc) }
136 .debug_macinfo 0 : { *(.debug_macinfo) }
137 /* SGI/MIPS DWARF 2 extensions */
138 .debug_weaknames 0 : { *(.debug_weaknames) }
139 .debug_funcnames 0 : { *(.debug_funcnames) }
140 .debug_typenames 0 : { *(.debug_typenames) }
141 .debug_varnames 0 : { *(.debug_varnames) }
142 /* These must appear regardless of . */
143}
144