]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/conf/ldscript.powerpc64
Add UPDATING entries and bump version.
[FreeBSD/FreeBSD.git] / sys / conf / ldscript.powerpc64
1 /* $FreeBSD$ */
2
3 OUTPUT_FORMAT("elf64-powerpc-freebsd", "elf64-powerpc-freebsd",
4               "elf64-powerpc-freebsd")
5 OUTPUT_ARCH(powerpc:common64)
6 ENTRY(__start)
7 SEARCH_DIR(/usr/lib);
8 PROVIDE (__stack = 0);
9 SECTIONS
10 {
11
12   /* Low-address wrapper for bootloaders (kexec/kboot) that can't parse ELF */
13   . = kernbase - 0x100;
14   .kboot : { *(.text.kboot) }
15
16   /* Read-only sections, merged into text segment: */
17   . = kernbase;
18   PROVIDE (begin = .);
19
20   .text      :
21   {
22     *(.text)
23     *(.stub)
24     /* .gnu.warning sections are handled specially by elf32.em.  */
25     *(.gnu.warning)
26     *(.gnu.linkonce.t*)
27   } =0
28   _etext = .;
29   PROVIDE (etext = .);
30
31   /* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */
32   .interpX    : { *(.interp)    } : NONE
33   /DISCARD/   : { *(.interp)    } 
34
35   /* Also delete notes */
36   /DISCARD/   : { *(.note.*)    } 
37
38   .hash          : { *(.hash)           }
39   .dynsym        : { *(.dynsym)         }
40   .dynstr        : { *(.dynstr)         }
41   .gnu.version   : { *(.gnu.version)    }
42   .gnu.version_d   : { *(.gnu.version_d)        }
43   .gnu.version_r   : { *(.gnu.version_r)        }
44   .note.gnu.build-id : {
45     PROVIDE (__build_id_start = .);
46     *(.note.gnu.build-id)
47     PROVIDE (__build_id_end = .);
48   }
49   .rela.text     :
50     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
51   .rela.data     :
52     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
53   .rela.rodata   :
54     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
55   .rela.got      : { *(.rela.got)               }
56   .rela.got1     : { *(.rela.got1)              }
57   .rela.got2     : { *(.rela.got2)              }
58   .rela.ctors    : { *(.rela.ctors)     }
59   .rela.dtors    : { *(.rela.dtors)     }
60   .rela.init     : { *(.rela.init)      }
61   .rela.fini     : { *(.rela.fini)      }
62   .rela.bss      : { *(.rela.bss)               }
63   .rela.plt      : { *(.rela.plt)               }
64   .rela.sdata    : { *(.rela.sdata)             }
65   .rela.sbss     : { *(.rela.sbss)              }
66   .rela.sdata2   : { *(.rela.sdata2)            }
67   .rela.sbss2    : { *(.rela.sbss2)             }
68
69   .init      : { *(.init)    } =0
70   .fini      : { *(.fini)    } =0
71   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
72   .rodata1   : { *(.rodata1) }
73   .sdata2    : { *(.sdata2)  }
74   .sbss2     : { *(.sbss2)   }
75   /* Adjust the address for the data segment to the next page up. */
76   . = ALIGN(4096);
77   .data.read_frequently :
78   {
79     *(SORT_BY_ALIGNMENT(.data.read_frequently))
80   }
81   .data.read_mostly :
82   {
83     *(.data.read_mostly)
84   }
85   . = ALIGN(128);
86   .data.exclusive_cache_line :
87   {
88     *(.data.exclusive_cache_line)
89   }
90   . = ALIGN(128);
91   .data    :
92   {
93     *(.data)
94     *(.gnu.linkonce.d*)
95   }
96   .data1     : { *(.data1) }
97   .toc1      : ALIGN(8) { *(.toc1) }
98   .opd       : ALIGN(8) { KEEP (*(.opd)) }
99   .branch_lt : ALIGN(8) { *(.branch_lt) }
100   . = ALIGN(4096);
101   .got       : ALIGN(8) { __tocbase = .; *(.got) }
102   .toc       : ALIGN(8) { *(.toc) }
103
104   .dynamic        : { *(.dynamic) }
105   /* Put .ctors and .dtors next to the .got2 section, so that the pointers
106      get relocated with -mrelocatable. Also put in the .fixup pointers.
107      The current compiler no longer needs this, but keep it around for 2.7.2  */
108                 PROVIDE (_GOT2_START_ = .);
109   .got2           :  { *(.got2) }
110                 PROVIDE (__CTOR_LIST__ = .);
111   .ctors          : { *(.ctors) }
112                 PROVIDE (__CTOR_END__ = .);
113                 PROVIDE (__DTOR_LIST__ = .);
114   .dtors          : { *(.dtors) }
115                 PROVIDE (__DTOR_END__ = .);
116                 PROVIDE (_FIXUP_START_ = .);
117   .fixup          : { *(.fixup) }
118                 PROVIDE (_FIXUP_END_ = .);
119                 PROVIDE (_GOT2_END_ = .);
120   /* We want the small data sections together, so single-instruction offsets
121      can access them all, and initialized data all before uninitialized, so
122      we can shorten the on-disk segment size.  */
123   .sdata     : { *(.sdata) }
124   _edata  =  .;
125   PROVIDE (edata = .);
126   .sbss      :
127   {
128     PROVIDE (__sbss_start = .);
129     *(.sbss)
130     *(.scommon)
131     *(.dynsbss)
132     PROVIDE (__sbss_end = .);
133   }
134   .plt   : { *(.plt) }
135   .bss       :
136   {
137    PROVIDE (__bss_start = .);
138    *(.dynbss)
139    *(.bss)
140    *(COMMON)
141   }
142   _end = . ;
143   PROVIDE (end = .);
144   /* Stabs debugging sections.  */
145   .stab 0 : { *(.stab) }
146   .stabstr 0 : { *(.stabstr) }
147   /* DWARF debug sections.
148      Symbols in the DWARF debugging sections are relative to the beginning
149      of the section so we begin them at 0.  */
150   /* DWARF 1 */
151   .debug          0 : { *(.debug) }
152   .line           0 : { *(.line) }
153   /* GNU DWARF 1 extensions */
154   .debug_srcinfo  0 : { *(.debug_srcinfo) }
155   .debug_sfnames  0 : { *(.debug_sfnames) }
156   /* DWARF 1.1 and DWARF 2 */
157   .debug_aranges  0 : { *(.debug_aranges) }
158   .debug_pubnames 0 : { *(.debug_pubnames) }
159   /* DWARF 2 */
160   .debug_info     0 : { *(.debug_info) }
161   .debug_abbrev   0 : { *(.debug_abbrev) }
162   .debug_line     0 : { *(.debug_line) }
163   .debug_frame    0 : { *(.debug_frame) }
164   .debug_str      0 : { *(.debug_str) }
165   .debug_loc      0 : { *(.debug_loc) }
166   .debug_macinfo  0 : { *(.debug_macinfo) }
167   /* SGI/MIPS DWARF 2 extensions */
168   .debug_weaknames 0 : { *(.debug_weaknames) }
169   .debug_funcnames 0 : { *(.debug_funcnames) }
170   .debug_typenames 0 : { *(.debug_typenames) }
171   .debug_varnames  0 : { *(.debug_varnames) }
172   /* These must appear regardless of  .  */
173 }
174