From 5dfac4879ce5f34503ae7537eefd3fc48d6fa750 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 25 Aug 2021 23:47:08 +0300 Subject: libfdt seems to work At least as far as reading memory info, cool. One issue I have is that .(ro)data is apparently accessed by absolute addresses, so I need to know at which address the kernel is going to be loaded. I would prefer completely position independent code, but if that's not possible then eh. --- include/apos/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/apos/main.h') diff --git a/include/apos/main.h b/include/apos/main.h index 5292df7..15fff73 100644 --- a/include/apos/main.h +++ b/include/apos/main.h @@ -3,6 +3,6 @@ #include -#define __main __section(".text.start") __noinline +#define __main __section(".kernel.start") __noinline #endif /* APOS_MAIN_H */ -- cgit v1.3