toolchain: don't flag init calls static
This will omit them from the final build, obviously
This commit is contained in:
parent
4f027726c6
commit
cd797b107c
1 changed files with 2 additions and 2 deletions
|
@ -13,10 +13,10 @@
|
||||||
#define __neo_section(name) __attribute__(( __section__(#name) ))
|
#define __neo_section(name) __attribute__(( __section__(#name) ))
|
||||||
|
|
||||||
#define __neo_init(fn) \
|
#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) \
|
#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
|
#ifdef __cplusplus
|
||||||
# define __restrict
|
# define __restrict
|
||||||
|
|
Loading…
Reference in a new issue