diff options
author | dzwdz | 2021-09-12 16:59:18 +0200 |
---|---|---|
committer | dzwdz | 2021-09-12 16:59:18 +0200 |
commit | 5090829984cd4b3238d3f42eaad2431f1fd5282b (patch) | |
tree | 85e2d41b9ea8f2fcd1e8687a221481e04e865850 /src/init | |
parent | 98f36a825da9a186d2f0ba399b0830eff9c8d258 (diff) |
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`
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |