From e698061ebaf0cf1a10c11c51a6c6cd46a331959c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 13 Sep 2025 14:53:43 -0400 Subject: initial commit Signed-off-by: Ian Moffett --- src/arch/i386/conf/e0.ld | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/arch/i386/conf/e0.ld (limited to 'src/arch/i386/conf/e0.ld') diff --git a/src/arch/i386/conf/e0.ld b/src/arch/i386/conf/e0.ld new file mode 100644 index 0000000..5b7c7fc --- /dev/null +++ b/src/arch/i386/conf/e0.ld @@ -0,0 +1,46 @@ +OUTPUT_FORMAT(elf64-x86-64) +OUTPUT_ARCH(i386:x86-64) +ENTRY(__bsp_entry) + +PHDRS +{ + text PT_LOAD FLAGS((1 << 0) | (1 << 2)) ; + rodata PT_LOAD FLAGS((1 << 2)) ; + data PT_LOAD FLAGS((1 << 1) | (1 << 2)) ; +} + +SECTIONS +{ + . = 0xFFFFFFFF80000000; + + .text : { + *(.text .text.*) + } :text + + . += CONSTANT(MAXPAGESIZE); + + .rodata : { + *(.rodata .rodata.*) + } :rodata + + . += CONSTANT(MAXPAGESIZE); + + .data : { + *(.data) + } :data + + .bss : { + *(COMMON) + *(.bss .bss.*) + } :data + + . = ALIGN(64); + .data.cacheline_aligned : { + *(.data.cacheline_aligned) + } + + /DISCARD/ : { + *(.eh_frame .eh_frame.*) + *(.note .note.*) + } +} -- cgit v1.2.3