This allegedly fixes compilation of the library bundler preload library on
Apple OS X. The resulting executables have not been runtime tested due to a
lack of suitable test hardware.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
+ #ifdef __APPLE__
+ __attribute__((section("__DATA,__mod_init_func")))
+ #else
__attribute__((section(".init_array")))
__attribute__((section(".init_array")))
static void *mangle_arg0_constructor = &mangle_arg0;
EOT
static void *mangle_arg0_constructor = &mangle_arg0;
EOT