2010-07-13 05:43:43 +00:00
|
|
|
/* $FreeBSD$ */
|
|
|
|
|
2014-10-10 06:24:09 +00:00
|
|
|
OUTPUT_FORMAT("elf64-powerpc-freebsd", "elf64-powerpc-freebsd",
|
|
|
|
"elf64-powerpc-freebsd")
|
2012-01-20 18:52:31 +00:00
|
|
|
OUTPUT_ARCH(powerpc:common64)
|
2010-07-13 05:43:43 +00:00
|
|
|
ENTRY(__start)
|
|
|
|
SEARCH_DIR(/usr/lib);
|
|
|
|
PROVIDE (__stack = 0);
|
2019-03-29 03:01:21 +00:00
|
|
|
PHDRS
|
|
|
|
{
|
|
|
|
text PT_LOAD ;
|
|
|
|
dynamic PT_DYNAMIC ;
|
|
|
|
}
|
2010-07-13 05:43:43 +00:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
|
2017-12-29 20:30:10 +00:00
|
|
|
/* Low-address wrapper for bootloaders (kexec/kboot) that can't parse ELF */
|
|
|
|
. = kernbase - 0x100;
|
2019-03-29 03:01:21 +00:00
|
|
|
.kboot : { *(.text.kboot) } :text
|
2017-12-29 20:30:10 +00:00
|
|
|
|
|
|
|
/* Read-only sections, merged into text segment: */
|
2017-11-25 21:45:51 +00:00
|
|
|
. = kernbase;
|
2017-12-19 15:50:46 +00:00
|
|
|
PROVIDE (begin = .);
|
2010-07-13 05:43:43 +00:00
|
|
|
|
|
|
|
.text :
|
|
|
|
{
|
2019-03-29 03:01:21 +00:00
|
|
|
*(.glink)
|
2010-07-13 05:43:43 +00:00
|
|
|
*(.text)
|
|
|
|
*(.stub)
|
|
|
|
/* .gnu.warning sections are handled specially by elf32.em. */
|
|
|
|
*(.gnu.warning)
|
|
|
|
*(.gnu.linkonce.t*)
|
|
|
|
} =0
|
|
|
|
_etext = .;
|
|
|
|
PROVIDE (etext = .);
|
|
|
|
|
2017-11-25 21:45:51 +00:00
|
|
|
/* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */
|
|
|
|
/DISCARD/ : { *(.interp) }
|
|
|
|
|
2017-12-29 20:30:10 +00:00
|
|
|
/* Also delete notes */
|
|
|
|
/DISCARD/ : { *(.note.*) }
|
|
|
|
|
2010-07-13 05:43:43 +00:00
|
|
|
.hash : { *(.hash) }
|
|
|
|
.dynsym : { *(.dynsym) }
|
|
|
|
.dynstr : { *(.dynstr) }
|
|
|
|
.gnu.version : { *(.gnu.version) }
|
|
|
|
.gnu.version_d : { *(.gnu.version_d) }
|
|
|
|
.gnu.version_r : { *(.gnu.version_r) }
|
2019-06-04 13:07:10 +00:00
|
|
|
.note.gnu.build-id : {
|
|
|
|
PROVIDE (__build_id_start = .);
|
|
|
|
*(.note.gnu.build-id)
|
|
|
|
PROVIDE (__build_id_end = .);
|
|
|
|
}
|
2010-07-13 05:43:43 +00:00
|
|
|
.rela.text :
|
|
|
|
{ *(.rela.text) *(.rela.gnu.linkonce.t*) }
|
|
|
|
.rela.data :
|
|
|
|
{ *(.rela.data) *(.rela.gnu.linkonce.d*) }
|
|
|
|
.rela.rodata :
|
|
|
|
{ *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
|
|
|
|
.rela.got : { *(.rela.got) }
|
|
|
|
.rela.got1 : { *(.rela.got1) }
|
|
|
|
.rela.got2 : { *(.rela.got2) }
|
|
|
|
.rela.ctors : { *(.rela.ctors) }
|
|
|
|
.rela.dtors : { *(.rela.dtors) }
|
|
|
|
.rela.init : { *(.rela.init) }
|
|
|
|
.rela.fini : { *(.rela.fini) }
|
|
|
|
.rela.bss : { *(.rela.bss) }
|
|
|
|
.rela.plt : { *(.rela.plt) }
|
|
|
|
.rela.sdata : { *(.rela.sdata) }
|
|
|
|
.rela.sbss : { *(.rela.sbss) }
|
|
|
|
.rela.sdata2 : { *(.rela.sdata2) }
|
|
|
|
.rela.sbss2 : { *(.rela.sbss2) }
|
|
|
|
|
|
|
|
.init : { *(.init) } =0
|
|
|
|
.fini : { *(.fini) } =0
|
|
|
|
.rodata : { *(.rodata) *(.gnu.linkonce.r*) }
|
|
|
|
.rodata1 : { *(.rodata1) }
|
|
|
|
.sdata2 : { *(.sdata2) }
|
|
|
|
.sbss2 : { *(.sbss2) }
|
|
|
|
/* Adjust the address for the data segment to the next page up. */
|
2012-01-20 18:52:31 +00:00
|
|
|
. = ALIGN(4096);
|
2018-08-19 19:00:44 +00:00
|
|
|
.data.read_frequently :
|
|
|
|
{
|
|
|
|
*(SORT_BY_ALIGNMENT(.data.read_frequently))
|
|
|
|
}
|
|
|
|
.data.read_mostly :
|
|
|
|
{
|
|
|
|
*(.data.read_mostly)
|
|
|
|
}
|
|
|
|
. = ALIGN(128);
|
|
|
|
.data.exclusive_cache_line :
|
|
|
|
{
|
|
|
|
*(.data.exclusive_cache_line)
|
|
|
|
}
|
|
|
|
. = ALIGN(128);
|
2010-07-13 05:43:43 +00:00
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
*(.gnu.linkonce.d*)
|
|
|
|
}
|
2012-01-20 18:52:31 +00:00
|
|
|
.data1 : { *(.data1) }
|
|
|
|
.toc1 : ALIGN(8) { *(.toc1) }
|
|
|
|
.opd : ALIGN(8) { KEEP (*(.opd)) }
|
|
|
|
.branch_lt : ALIGN(8) { *(.branch_lt) }
|
2015-11-29 06:40:09 +00:00
|
|
|
. = ALIGN(4096);
|
2019-05-22 15:56:41 +00:00
|
|
|
.got : ALIGN(8) { __tocbase = .; *(.got) }
|
|
|
|
.toc : ALIGN(8) { *(.toc) }
|
2012-01-20 18:52:31 +00:00
|
|
|
|
2019-03-29 03:01:21 +00:00
|
|
|
.dynamic : { *(.dynamic) } :text :dynamic
|
2010-07-13 05:43:43 +00:00
|
|
|
/* Put .ctors and .dtors next to the .got2 section, so that the pointers
|
|
|
|
get relocated with -mrelocatable. Also put in the .fixup pointers.
|
|
|
|
The current compiler no longer needs this, but keep it around for 2.7.2 */
|
|
|
|
PROVIDE (_GOT2_START_ = .);
|
|
|
|
.got2 : { *(.got2) }
|
|
|
|
PROVIDE (__CTOR_LIST__ = .);
|
|
|
|
.ctors : { *(.ctors) }
|
|
|
|
PROVIDE (__CTOR_END__ = .);
|
|
|
|
PROVIDE (__DTOR_LIST__ = .);
|
|
|
|
.dtors : { *(.dtors) }
|
|
|
|
PROVIDE (__DTOR_END__ = .);
|
|
|
|
PROVIDE (_FIXUP_START_ = .);
|
|
|
|
.fixup : { *(.fixup) }
|
|
|
|
PROVIDE (_FIXUP_END_ = .);
|
|
|
|
PROVIDE (_GOT2_END_ = .);
|
|
|
|
/* We want the small data sections together, so single-instruction offsets
|
|
|
|
can access them all, and initialized data all before uninitialized, so
|
|
|
|
we can shorten the on-disk segment size. */
|
|
|
|
.sdata : { *(.sdata) }
|
|
|
|
_edata = .;
|
|
|
|
PROVIDE (edata = .);
|
|
|
|
.sbss :
|
|
|
|
{
|
|
|
|
PROVIDE (__sbss_start = .);
|
|
|
|
*(.sbss)
|
|
|
|
*(.scommon)
|
|
|
|
*(.dynsbss)
|
|
|
|
PROVIDE (__sbss_end = .);
|
|
|
|
}
|
|
|
|
.plt : { *(.plt) }
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
PROVIDE (__bss_start = .);
|
|
|
|
*(.dynbss)
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
}
|
|
|
|
_end = . ;
|
|
|
|
PROVIDE (end = .);
|
|
|
|
/* Stabs debugging sections. */
|
|
|
|
.stab 0 : { *(.stab) }
|
|
|
|
.stabstr 0 : { *(.stabstr) }
|
|
|
|
/* DWARF debug sections.
|
|
|
|
Symbols in the DWARF debugging sections are relative to the beginning
|
|
|
|
of the section so we begin them at 0. */
|
|
|
|
/* DWARF 1 */
|
|
|
|
.debug 0 : { *(.debug) }
|
|
|
|
.line 0 : { *(.line) }
|
|
|
|
/* GNU DWARF 1 extensions */
|
|
|
|
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
|
|
|
.debug_sfnames 0 : { *(.debug_sfnames) }
|
|
|
|
/* DWARF 1.1 and DWARF 2 */
|
|
|
|
.debug_aranges 0 : { *(.debug_aranges) }
|
|
|
|
.debug_pubnames 0 : { *(.debug_pubnames) }
|
|
|
|
/* DWARF 2 */
|
|
|
|
.debug_info 0 : { *(.debug_info) }
|
|
|
|
.debug_abbrev 0 : { *(.debug_abbrev) }
|
|
|
|
.debug_line 0 : { *(.debug_line) }
|
|
|
|
.debug_frame 0 : { *(.debug_frame) }
|
|
|
|
.debug_str 0 : { *(.debug_str) }
|
|
|
|
.debug_loc 0 : { *(.debug_loc) }
|
|
|
|
.debug_macinfo 0 : { *(.debug_macinfo) }
|
|
|
|
/* SGI/MIPS DWARF 2 extensions */
|
|
|
|
.debug_weaknames 0 : { *(.debug_weaknames) }
|
|
|
|
.debug_funcnames 0 : { *(.debug_funcnames) }
|
|
|
|
.debug_typenames 0 : { *(.debug_typenames) }
|
|
|
|
.debug_varnames 0 : { *(.debug_varnames) }
|
|
|
|
/* These must appear regardless of . */
|
|
|
|
}
|
|
|
|
|