From f199eae0154f354c37750c8cd3037f94dbfe70db Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sat, 26 Jul 2025 16:03:00 +0200 Subject: Initial commit --- linker.lds | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 linker.lds (limited to 'linker.lds') diff --git a/linker.lds b/linker.lds new file mode 100644 index 0000000..d01b37a --- /dev/null +++ b/linker.lds @@ -0,0 +1,37 @@ +OUTPUT_FORMAT(elf64-x86-64) +PHDRS +{ + limine_requests PT_LOAD; + text PT_LOAD; + rodata PT_LOAD; + data PT_LOAD; +} +SECTIONS +{ + . = 0xFFFFFFFF80000000; + .limine_requests : { + KEEP(*(.limine_requests_start)) + KEEP(*(.limine_requests)) + KEEP(*(.limine_requests_end)) + } :limine_requests + + . = ALIGN(CONSTANT(MAXPAGESIZE)); + .text : { + *(.text .text.*) + } :text + + . = ALIGN(CONSTANT(MAXPAGESIZE)); + .rodata : { + *(.rodata .rodata.*) + } :rodata + + . = ALIGN(CONSTANT(MAXPAGESIZE)); + .data : { + *(.data .data.*) + } :data + + .bss : { + *(.bss .bss.*) + *(COMMON) + } :data +} -- cgit v1.2.3