mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-22 17:01:28 +00:00
31 lines
529 B
Plaintext
31 lines
529 B
Plaintext
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
|
|
/*OUTPUT_FORMAT("pei-x86-64", "pei-x86-64", "pei-x86-64") */
|
|
OUTPUT_ARCH(i386:x86-64)
|
|
ENTRY(efi_main)
|
|
SECTIONS
|
|
{
|
|
/* 0x1e0 is the size of the MZ header that will be added by gcc */
|
|
.text 0x1e0 :
|
|
{
|
|
*(.text)
|
|
}
|
|
|
|
.data :
|
|
{
|
|
*(.rodata*)
|
|
*(.data*)
|
|
/* the EFI loader doesn't seem to like a .bss section, so we stick
|
|
it all into .data: */
|
|
*(.bss)
|
|
}
|
|
|
|
/DISCARD/ :
|
|
{
|
|
*(.xdata*)
|
|
*(.idata*)
|
|
*(.pdata*)
|
|
*(.comment)
|
|
*(.eh_fram*)
|
|
}
|
|
}
|