You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
peari9jp6/kernel/src/arch/aarch64/boot/linker.ld

49 lines
791 B

ENTRY(_start)
SECTIONS {
. = 0xffff000000100000; /* Load the kernel at this address. It's also kernel stack top address */
.text : {
stext = .;
*(.text.entry)
*(.text .text.* .gnu.linkonce.t*)
. = ALIGN(4K);
etext = .;
}
.rodata : {
srodata = .;
*(.rodata .rodata.* .gnu.linkonce.r*)
. = ALIGN(4K);
erodata = .;
}
.data : {
sdata = .;
*(.data .data.* .gnu.linkonce.d*)
. = ALIGN(4K);
edata = .;
}
.bss : {
. = ALIGN(32);
sbss = .;
*(.bss .bss.*)
*(COMMON)
. = ALIGN(4K);
ebss = .;
}
.stack : {
. = ALIGN(4K);
bootstack = .;
. += 0x100000;
bootstacktop = .;
}
/* end of the binary */
_end = ALIGN(8);
/DISCARD/ : { *(.comment) *(.gnu*) *(.note*) *(.eh_frame*) }
}