initial commit
This commit is contained in:
24
linker.ld
Normal file
24
linker.ld
Normal file
@@ -0,0 +1,24 @@
|
||||
ENTRY(_start)
|
||||
PHDRS {
|
||||
header PT_LOAD FILEHDR PHDRS ALIGN(4)
|
||||
kernel PT_LOAD FLAGS(5)
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
/* Place the multiboot header at file offset 0 */
|
||||
. = 0;
|
||||
.multiboot : {
|
||||
KEEP(*(.multiboot))
|
||||
} AT(0) : header
|
||||
|
||||
/* Place the remaining kernel sections starting at 1MB */
|
||||
. = 0x100000;
|
||||
.text : {
|
||||
*(.text*)
|
||||
} : kernel
|
||||
|
||||
.rodata : { *(.rodata*) } : kernel
|
||||
.data : { *(.data*) } : kernel
|
||||
.bss : { *(.bss*) } : kernel
|
||||
}
|
||||
Reference in New Issue
Block a user