23 lines
449 B
Plaintext
23 lines
449 B
Plaintext
ENTRY(_start)
|
|
OUTPUT_FORMAT(elf64-x86-64)
|
|
|
|
. = 0x2f00000000;
|
|
|
|
SECTIONS
|
|
{
|
|
.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) }
|
|
}
|