30 lines
711 B
Text
30 lines
711 B
Text
|
ENTRY(_start)
|
||
|
OUTPUT_FORMAT(elf64-x86-64)
|
||
|
OUTPUT_ARCH(i386:x86-64)
|
||
|
SECTIONS
|
||
|
{
|
||
|
. = 0x100000;
|
||
|
kernel_start = .;
|
||
|
.text : {
|
||
|
*(multiboot)
|
||
|
*(.text)
|
||
|
}
|
||
|
.data : {
|
||
|
start_ctors = .;
|
||
|
KEEP(*( .init_array ));
|
||
|
KEEP(*(SORT_BY_INIT_PRIORITY( .init_array.* )));
|
||
|
*(.ctors)
|
||
|
end_ctors = .;
|
||
|
start_dtors = .;
|
||
|
*(.dtors)
|
||
|
end_dtors = .;
|
||
|
*(.data)
|
||
|
}
|
||
|
.rodata : {
|
||
|
*(.rodata)
|
||
|
}
|
||
|
.bss : {
|
||
|
*(.bss)
|
||
|
}
|
||
|
kernel_end = .;
|
||
|
}
|