[app] make APP_START work with C++

Needs a __USED tag or the compiler will GC it apparently. Should do the
same thing for other section based trickery.
This commit is contained in:
Travis Geiselbrecht
2021-05-27 03:14:29 -07:00
parent 08aeb5a6ad
commit c49e63e62c

View File

@@ -40,7 +40,7 @@ struct app_descriptor {
size_t stack_size; size_t stack_size;
}; };
#define APP_START(appname) const struct app_descriptor _app_##appname __ALIGNED(sizeof(void *)) __SECTION("apps") = { .name = #appname, #define APP_START(appname) const struct app_descriptor _app_##appname __USED __ALIGNED(sizeof(void *)) __SECTION("apps") = { .name = #appname,
#define APP_END }; #define APP_END };