22 lines
447 B
Plaintext
22 lines
447 B
Plaintext
|
ENTRY(_start)
|
||
|
OUTPUT_FORMAT(elf64-x86-64)
|
||
|
|
||
|
SECTIONS
|
||
|
{
|
||
|
. = 0x10000;
|
||
|
.text : ALIGN(16) {
|
||
|
KEEP(*(.text.boot)) *(.text .text.*) /* code */
|
||
|
*(.rodata .rodata.*) /* data */
|
||
|
}
|
||
|
.data : ALIGN(16) {
|
||
|
*(.data .data.*)
|
||
|
}
|
||
|
.bss (NOLOAD) : { /* bss */
|
||
|
. = ALIGN(16);
|
||
|
*(.bss .bss.*)
|
||
|
*(COMMON)
|
||
|
}
|
||
|
|
||
|
/DISCARD/ : { *(.eh_frame) *(.comment) }
|
||
|
}
|