]> 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   .hash          : { *(.hash)           }
36   .dynsym        : { *(.dynsym)         }
37   .dynstr        : { *(.dynstr)         }
38   .gnu.version   : { *(.gnu.version)    }
39   .gnu.version_d   : { *(.gnu.version_d)        }
40   .gnu.version_r   : { *(.gnu.version_r)        }
41   .note.gnu.build-id : {
42     PROVIDE (__build_id_start = .);
43     *(.note.gnu.build-id)
44     PROVIDE (__build_id_end = .);
45   }
46
47   /* Do not emit any additional notes. */
48   /DISCARD/   : { *(.note.*)    } 
49
50   .rela.text     :
51     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
52   .rela.data     :
53     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
54   .rela.rodata   :
55     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
56   .rela.got      : { *(.rela.got)               }
57   .rela.got1     : { *(.rela.got1)              }
58   .rela.got2     : { *(.rela.got2)              }
59   .rela.ctors    : { *(.rela.ctors)     }
60   .rela.dtors    : { *(.rela.dtors)     }
61   .rela.init     : { *(.rela.init)      }
62   .rela.fini     : { *(.rela.fini)      }
63   .rela.bss      : { *(.rela.bss)               }
64   .rela.plt      : { *(.rela.plt)               }
65   .rela.sdata    : { *(.rela.sdata)             }
66   .rela.sbss     : { *(.rela.sbss)              }
67   .rela.sdata2   : { *(.rela.sdata2)            }
68   .rela.sbss2    : { *(.rela.sbss2)             }
69
70   .init      : { *(.init)    } =0
71   .fini      : { *(.fini)    } =0
72   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
73   .rodata1   : { *(.rodata1) }
74   .sdata2    : { *(.sdata2)  }
75   .sbss2     : { *(.sbss2)   }
76   /* Adjust the address for the data segment to the next page up. */
77   . = ALIGN(4096);
78   .data.read_frequently :
79   {
80     *(SORT_BY_ALIGNMENT(.data.read_frequently))
81   }
82   .data.read_mostly :
83   {
84     *(.data.read_mostly)
85   }
86   . = ALIGN(128);
87   .data.exclusive_cache_line :
88   {
89     *(.data.exclusive_cache_line)
90   }
91   . = ALIGN(128);
92   .data    :
93   {
94     *(.data)
95     *(.gnu.linkonce.d*)
96   }
97   .data1     : { *(.data1) }
98   .toc1      : ALIGN(8) { *(.toc1) }
99   .opd       : ALIGN(8) { KEEP (*(.opd)) }
100   .branch_lt : ALIGN(8) { *(.branch_lt) }
101   . = ALIGN(4096);
102   .got       : ALIGN(8) { __tocbase = .; *(.got) }
103   .toc       : ALIGN(8) { *(.toc) }
104
105   .dynamic        : { *(.dynamic) }
106   /* Put .ctors and .dtors next to the .got2 section, so that the pointers
107      get relocated with -mrelocatable. Also put in the .fixup pointers.
108      The current compiler no longer needs this, but keep it around for 2.7.2  */
109                 PROVIDE (_GOT2_START_ = .);
110   .got2           :  { *(.got2) }
111                 PROVIDE (__CTOR_LIST__ = .);
112   .ctors          : { *(.ctors) }
113                 PROVIDE (__CTOR_END__ = .);
114                 PROVIDE (__DTOR_LIST__ = .);
115   .dtors          : { *(.dtors) }
116                 PROVIDE (__DTOR_END__ = .);
117                 PROVIDE (_FIXUP_START_ = .);
118   .fixup          : { *(.fixup) }
119                 PROVIDE (_FIXUP_END_ = .);
120                 PROVIDE (_GOT2_END_ = .);
121   /* We want the small data sections together, so single-instruction offsets
122      can access them all, and initialized data all before uninitialized, so
123      we can shorten the on-disk segment size.  */
124   .sdata     : { *(.sdata) }
125   _edata  =  .;
126   PROVIDE (edata = .);
127   .sbss      :
128   {
129     PROVIDE (__sbss_start = .);
130     *(.sbss)
131     *(.scommon)
132     *(.dynsbss)
133     PROVIDE (__sbss_end = .);
134   }
135   .plt   : { *(.plt) }
136   .bss       :
137   {
138    PROVIDE (__bss_start = .);
139    *(.dynbss)
140    *(.bss)
141    *(COMMON)
142   }
143   _end = . ;
144   PROVIDE (end = .);
145   /* Stabs debugging sections.  */
146   .stab 0 : { *(.stab) }
147   .stabstr 0 : { *(.stabstr) }
148   /* DWARF debug sections.
149      Symbols in the DWARF debugging sections are relative to the beginning
150      of the section so we begin them at 0.  */
151   /* DWARF 1 */
152   .debug          0 : { *(.debug) }
153   .line           0 : { *(.line) }
154   /* GNU DWARF 1 extensions */
155   .debug_srcinfo  0 : { *(.debug_srcinfo) }
156   .debug_sfnames  0 : { *(.debug_sfnames) }
157   /* DWARF 1.1 and DWARF 2 */
158   .debug_aranges  0 : { *(.debug_aranges) }
159   .debug_pubnames 0 : { *(.debug_pubnames) }
160   /* DWARF 2 */
161   .debug_info     0 : { *(.debug_info) }
162   .debug_abbrev   0 : { *(.debug_abbrev) }
163   .debug_line     0 : { *(.debug_line) }
164   .debug_frame    0 : { *(.debug_frame) }
165   .debug_str      0 : { *(.debug_str) }
166   .debug_loc      0 : { *(.debug_loc) }
167   .debug_macinfo  0 : { *(.debug_macinfo) }
168   /* SGI/MIPS DWARF 2 extensions */
169   .debug_weaknames 0 : { *(.debug_weaknames) }
170   .debug_funcnames 0 : { *(.debug_funcnames) }
171   .debug_typenames 0 : { *(.debug_typenames) }
172   .debug_varnames  0 : { *(.debug_varnames) }
173   /* These must appear regardless of  .  */
174 }
175