2001-06-17 09:39:44 +00:00
|
|
|
|
2014-10-10 06:24:09 +00:00
|
|
|
OUTPUT_FORMAT("elf32-powerpc-freebsd", "elf32-powerpc-freebsd",
|
|
|
|
"elf32-powerpc-freebsd")
|
2001-06-17 09:39:44 +00:00
|
|
|
OUTPUT_ARCH(powerpc)
|
1998-07-15 19:19:24 +00:00
|
|
|
ENTRY(__start)
|
2000-01-11 15:35:16 +00:00
|
|
|
SEARCH_DIR(/usr/lib);
|
2001-06-17 09:39:44 +00:00
|
|
|
PROVIDE (__stack = 0);
|
2020-05-07 19:32:49 +00:00
|
|
|
PHDRS
|
|
|
|
{
|
|
|
|
kernel PT_LOAD;
|
|
|
|
dynamic PT_DYNAMIC;
|
|
|
|
}
|
1998-07-15 19:19:24 +00:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
/* Read-only sections, merged into text segment: */
|
2008-02-27 00:03:23 +00:00
|
|
|
|
|
|
|
. = kernbase + SIZEOF_HEADERS;
|
2015-01-18 18:32:43 +00:00
|
|
|
PROVIDE (begin = . - SIZEOF_HEADERS);
|
2008-02-27 00:03:23 +00:00
|
|
|
|
|
|
|
.text :
|
|
|
|
{
|
2019-11-14 04:34:17 +00:00
|
|
|
*(.glink)
|
2008-02-27 00:03:23 +00:00
|
|
|
*(.text)
|
|
|
|
*(.stub)
|
|
|
|
/* .gnu.warning sections are handled specially by elf32.em. */
|
|
|
|
*(.gnu.warning)
|
|
|
|
*(.gnu.linkonce.t*)
|
2020-05-07 19:32:49 +00:00
|
|
|
} :kernel =0
|
2008-02-27 00:03:23 +00:00
|
|
|
_etext = .;
|
|
|
|
PROVIDE (etext = .);
|
|
|
|
|
1998-07-15 19:19:24 +00:00
|
|
|
.interp : { *(.interp) }
|
|
|
|
.hash : { *(.hash) }
|
|
|
|
.dynsym : { *(.dynsym) }
|
|
|
|
.dynstr : { *(.dynstr) }
|
|
|
|
.gnu.version : { *(.gnu.version) }
|
|
|
|
.gnu.version_d : { *(.gnu.version_d) }
|
|
|
|
.gnu.version_r : { *(.gnu.version_r) }
|
|
|
|
.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) }
|
2001-06-17 09:39:44 +00:00
|
|
|
.rela.got1 : { *(.rela.got1) }
|
|
|
|
.rela.got2 : { *(.rela.got2) }
|
1998-07-15 19:19:24 +00:00
|
|
|
.rela.ctors : { *(.rela.ctors) }
|
|
|
|
.rela.dtors : { *(.rela.dtors) }
|
|
|
|
.rela.init : { *(.rela.init) }
|
|
|
|
.rela.fini : { *(.rela.fini) }
|
|
|
|
.rela.bss : { *(.rela.bss) }
|
|
|
|
.rela.plt : { *(.rela.plt) }
|
2001-06-17 09:39:44 +00:00
|
|
|
.rela.sdata : { *(.rela.sdata) }
|
|
|
|
.rela.sbss : { *(.rela.sbss) }
|
|
|
|
.rela.sdata2 : { *(.rela.sdata2) }
|
|
|
|
.rela.sbss2 : { *(.rela.sbss2) }
|
2008-02-27 00:03:23 +00:00
|
|
|
|
2001-06-17 09:39:44 +00:00
|
|
|
.init : { *(.init) } =0
|
|
|
|
.fini : { *(.fini) } =0
|
1998-07-15 19:19:24 +00:00
|
|
|
.rodata : { *(.rodata) *(.gnu.linkonce.r*) }
|
|
|
|
.rodata1 : { *(.rodata1) }
|
2019-06-04 13:07:10 +00:00
|
|
|
.note.gnu.build-id : {
|
|
|
|
PROVIDE (__build_id_start = .);
|
|
|
|
*(.note.gnu.build-id)
|
|
|
|
PROVIDE (__build_id_end = .);
|
|
|
|
}
|
2001-06-17 09:39:44 +00:00
|
|
|
.sdata2 : { *(.sdata2) }
|
|
|
|
.sbss2 : { *(.sbss2) }
|
2001-10-08 10:43:34 +00:00
|
|
|
/* Adjust the address for the data segment to the next page up. */
|
|
|
|
. = ((. + 0x1000) & ~(0x1000 - 1));
|
1998-07-15 19:19:24 +00:00
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
*(.gnu.linkonce.d*)
|
|
|
|
}
|
|
|
|
.data1 : { *(.data1) }
|
2001-06-17 09:39:44 +00:00
|
|
|
.got1 : { *(.got1) }
|
2019-11-14 04:34:17 +00:00
|
|
|
. = ALIGN(4096);
|
|
|
|
.got : { *(.got) }
|
|
|
|
.got.plt : { *(.got.plt) }
|
|
|
|
|
|
|
|
|
2020-05-07 19:32:49 +00:00
|
|
|
.dynamic : { *(.dynamic) } :kernel :dynamic
|
2001-06-17 09:39:44 +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_ = .);
|
1998-07-15 19:19:24 +00:00
|
|
|
/* 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. */
|
2020-05-07 19:32:49 +00:00
|
|
|
.sdata : { *(.sdata) } :kernel
|
1998-07-15 19:19:24 +00:00
|
|
|
_edata = .;
|
|
|
|
PROVIDE (edata = .);
|
2001-06-17 09:39:44 +00:00
|
|
|
.sbss :
|
|
|
|
{
|
|
|
|
PROVIDE (__sbss_start = .);
|
|
|
|
*(.sbss)
|
|
|
|
*(.scommon)
|
|
|
|
*(.dynsbss)
|
|
|
|
PROVIDE (__sbss_end = .);
|
|
|
|
}
|
|
|
|
.plt : { *(.plt) }
|
1998-07-15 19:19:24 +00:00
|
|
|
.bss :
|
|
|
|
{
|
2001-06-17 09:39:44 +00:00
|
|
|
PROVIDE (__bss_start = .);
|
1998-07-15 19:19:24 +00:00
|
|
|
*(.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 . */
|
|
|
|
}
|
|
|
|
|