toolchain: don't flag init calls static

This will omit them from the final build, obviously
This commit is contained in:
anna 2021-07-19 14:08:23 +02:00
parent 4f027726c6
commit cd797b107c
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -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