Fixed ELF loading again, memory management needs to be redone properly
This commit is contained in:
parent
67f719c73f
commit
819a24ab8d
9 changed files with 68 additions and 28 deletions
|
@ -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
|
||||
|
|
|
@ -32,7 +32,7 @@ PHDRS
|
|||
SECTIONS
|
||||
{
|
||||
/* TODO: 0xffffffff80000000 */
|
||||
. = 0xffffffff80000000;
|
||||
. = 0x1000;
|
||||
|
||||
_linker_start_text = .;
|
||||
|
||||
|
|
|
@ -31,4 +31,6 @@ void _start(void)
|
|||
__asm__ volatile("wfe");
|
||||
#endif
|
||||
}
|
||||
|
||||
__builtin_unreachable();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue