2013-01-31 01:25:25 +04:00
|
|
|
/* Same as elf_x86_64_fbsd_efi.lds, except for OUTPUT_FORMAT below - KEEP IN SYNC */
|
|
|
|
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
|
|
|
|
OUTPUT_ARCH(i386:x86-64)
|
|
|
|
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0;
|
|
|
|
ImageBase = .;
|
2018-01-27 23:29:05 +03:00
|
|
|
/* .hash and/or .gnu.hash MUST come first! */
|
|
|
|
.hash : { *(.hash) }
|
|
|
|
.gnu.hash : { *(.gnu.hash) }
|
2013-01-31 01:25:25 +04:00
|
|
|
. = ALIGN(4096);
|
|
|
|
.eh_frame :
|
|
|
|
{
|
|
|
|
*(.eh_frame)
|
|
|
|
}
|
|
|
|
. = ALIGN(4096);
|
|
|
|
.text :
|
|
|
|
{
|
2015-07-16 19:31:23 +03:00
|
|
|
_text = .;
|
2013-01-31 01:25:25 +04:00
|
|
|
*(.text)
|
2013-06-12 17:53:01 +04:00
|
|
|
*(.text.*)
|
|
|
|
*(.gnu.linkonce.t.*)
|
2015-07-16 19:31:23 +03:00
|
|
|
. = ALIGN(16);
|
2013-01-31 01:25:25 +04:00
|
|
|
}
|
2015-07-16 19:31:23 +03:00
|
|
|
_etext = .;
|
|
|
|
_text_size = . - _text;
|
2013-01-31 01:25:25 +04:00
|
|
|
. = ALIGN(4096);
|
|
|
|
.reloc :
|
|
|
|
{
|
|
|
|
*(.reloc)
|
|
|
|
}
|
2022-12-29 14:54:20 +03:00
|
|
|
. = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
|
2013-01-31 01:25:25 +04:00
|
|
|
.data :
|
|
|
|
{
|
2015-07-16 19:31:23 +03:00
|
|
|
_data = .;
|
2013-01-31 01:25:25 +04:00
|
|
|
*(.rodata*)
|
|
|
|
*(.got.plt)
|
|
|
|
*(.got)
|
|
|
|
*(.data*)
|
|
|
|
*(.sdata)
|
|
|
|
/* the EFI loader doesn't seem to like a .bss section, so we stick
|
|
|
|
it all into .data: */
|
|
|
|
*(.sbss)
|
|
|
|
*(.scommon)
|
|
|
|
*(.dynbss)
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
*(.rel.local)
|
|
|
|
}
|
2016-02-25 17:36:53 +03:00
|
|
|
.note.gnu.build-id : { *(.note.gnu.build-id) }
|
|
|
|
|
2015-07-16 19:31:23 +03:00
|
|
|
_edata = .;
|
|
|
|
_data_size = . - _etext;
|
2013-01-31 01:25:25 +04:00
|
|
|
. = ALIGN(4096);
|
|
|
|
.dynamic : { *(.dynamic) }
|
|
|
|
. = ALIGN(4096);
|
|
|
|
.rela :
|
|
|
|
{
|
|
|
|
*(.rela.data*)
|
|
|
|
*(.rela.got)
|
|
|
|
*(.rela.stab)
|
|
|
|
}
|
|
|
|
. = ALIGN(4096);
|
|
|
|
.dynsym : { *(.dynsym) }
|
|
|
|
. = ALIGN(4096);
|
|
|
|
.dynstr : { *(.dynstr) }
|
|
|
|
. = ALIGN(4096);
|
2022-12-29 14:54:20 +03:00
|
|
|
. = DATA_SEGMENT_END (.);
|
2013-01-31 01:25:25 +04:00
|
|
|
.ignored.reloc :
|
|
|
|
{
|
|
|
|
*(.rela.reloc)
|
|
|
|
*(.eh_frame)
|
|
|
|
*(.note.GNU-stack)
|
|
|
|
}
|
|
|
|
.comment 0 : { *(.comment) }
|
|
|
|
}
|