feat: add initial impl of efi-stub and kernel
This commit is contained in:
28
arch/x86/boot/setup.ld
Normal file
28
arch/x86/boot/setup.ld
Normal file
@@ -0,0 +1,28 @@
|
||||
OUTPUT_FORMAT(binary)
|
||||
OUTPUT_ARCH(i386)
|
||||
ENTRY(_start)
|
||||
|
||||
SECTIONS {
|
||||
. = 0;
|
||||
|
||||
.bstext : {
|
||||
*(.bstext)
|
||||
. = 495;
|
||||
} =0xffffffff
|
||||
.text : {*(.text .text.*)}
|
||||
. = ALIGN(16);
|
||||
.rodata : {*(.rodata .rodata.*)}
|
||||
. = ALIGN(16);
|
||||
.data : {*(.data .data.*)}
|
||||
|
||||
setup_size = ALIGN(ABSOLUTE(.), 4096);
|
||||
|
||||
. = ALIGN(16);
|
||||
.bss : {*(.bss) }
|
||||
. = ALIGN(16);
|
||||
|
||||
/DISCARD/ : {
|
||||
*(.note*)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user