From d963772c6633a0610898aaba2ae90d461e8f2de8 Mon Sep 17 00:00:00 2001 From: nishi Date: Fri, 7 Jul 2023 23:40:27 +0000 Subject: should be working, should be git-svn-id: https://svn.vegaa.systems/svn/vega-Vega/trunk@7 a8a8aea2-181d-ee11-89e8-15fd0e089fc4 --- conf/limine.cfg | 7 +++++++ conf/link-amd64.ld | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 conf/limine.cfg create mode 100644 conf/link-amd64.ld (limited to 'conf') diff --git a/conf/limine.cfg b/conf/limine.cfg new file mode 100644 index 0000000..5328705 --- /dev/null +++ b/conf/limine.cfg @@ -0,0 +1,7 @@ +TIMEOUT=30 + +:Vega + +PROTOCOL=limine +KERNEL_PATH=boot:///boot/vega-kernel +EDITOR_ENABLED=no diff --git a/conf/link-amd64.ld b/conf/link-amd64.ld new file mode 100644 index 0000000..454f1f8 --- /dev/null +++ b/conf/link-amd64.ld @@ -0,0 +1,47 @@ +OUTPUT_FORMAT(elf64-x86-64) +OUTPUT_ARCH(i386:x86-64) +ENTRY(main) + +PHDRS +{ + text PT_LOAD FLAGS((1 << 0) | (1 << 2)) ; /* Execute + Read */ + rodata PT_LOAD FLAGS((1 << 2)) ; /* Read only */ + data PT_LOAD FLAGS((1 << 1) | (1 << 2)) ; /* Write + Read */ +} + +SECTIONS +{ + . = 0xFFFFFFFF80000000; + + .text : { + *(.text .text.*) + } :text + + . += CONSTANT(MAXPAGESIZE); + + .rodata : { + *(.rodata .rodata.*) + } :rodata + + .modules : { + __modules_init_start = .; + *(.modules .modules) + __modules_init_end = .; + } :rodata + + . += CONSTANT(MAXPAGESIZE); + + .data : { + *(.data .data.*) + } :data + + .bss : { + *(COMMON) + *(.bss .bss.*) + } :data + + /DISCARD/ : { + *(.eh_frame) + *(.note .note.*) + } +} -- cgit v1.2.3