From cd797b107c9b001a39f1afa8f382c3483009149c Mon Sep 17 00:00:00 2001 From: fef Date: Mon, 19 Jul 2021 14:08:23 +0200 Subject: [PATCH] toolchain: don't flag init calls static This will omit them from the final build, obviously --- include/neo/_toolchain.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/neo/_toolchain.h b/include/neo/_toolchain.h index 70dea38..0cc4e2c 100644 --- a/include/neo/_toolchain.h +++ b/include/neo/_toolchain.h @@ -13,10 +13,10 @@ #define __neo_section(name) __attribute__(( __section__(#name) )) #define __neo_init(fn) \ - __neo_section(.init_array) static void (*__neo_init_##fn)(void) = fn + __neo_section(.init_array) void (*__neo_init_##fn)(void) = fn #define __neo_fini(fn) \ - __neo_section(.fini_array) static void (*__neo_fini_##fn)(void) = fn + __neo_section(.fini_array) void (*__neo_fini_##fn)(void) = fn #ifdef __cplusplus # define __restrict