From 5090829984cd4b3238d3f42eaad2431f1fd5282b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 12 Sep 2021 16:59:18 +0200 Subject: force init's main to be in .text.startup for some reason it's only there by default if you compile with `-O2`. because of this, you couldn't compile camellia with `-O1` --- src/init/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/init/main.c b/src/init/main.c index 78576aa..fa4fda7 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -13,6 +13,7 @@ int tty_fd; void fs_test(void); +__attribute__((section(".text.startup"))) int main(void) { // allocate bss _syscall_memflag(&_bss_start, &_bss_end - &_bss_start, MEMFLAG_PRESENT); -- cgit v1.2.3