Fixed ELF loading again, memory management needs to be redone properly

This commit is contained in:
Jozef Nagy 2025-04-16 23:11:21 +02:00
parent 67f719c73f
commit 819a24ab8d
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
9 changed files with 68 additions and 28 deletions

View file

@ -55,7 +55,7 @@ KERNEL_CFLAGS := $(foreach d, $(INCLUDE_DIRS), -I$d) \
KERNEL_LDFLAGS := -Tarch/$(ARCH)/linker.ld \
-nostdlib \
-static \
#-no-pie
-no-pie
ifeq ($(BUILD_TYPE),debug)
KERNEL_CFLAGS += -O0 -g3

View file

@ -32,7 +32,7 @@ PHDRS
SECTIONS
{
/* TODO: 0xffffffff80000000 */
. = 0xffffffff80000000;
. = 0x1000;
_linker_start_text = .;

View file

@ -31,4 +31,6 @@ void _start(void)
__asm__ volatile("wfe");
#endif
}
__builtin_unreachable();
}