You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
452 B

// !!! HACK ALERT !!!
// We need the __init_libc symbol in the output executable (so the runtime can initialize libc)
// We can't directly export it since it's in a linked library
// Thus we export a dummy function that uses it, forcing it to be included
#define IMPORT __attribute__((visibility("default")))
#define EXPORT __attribute__((visibility("default")))
IMPORT void __init_libc(char **, char *);
EXPORT void
dummy()
{
__init_libc(0, 0);
}