build: respect EXPORT_UNPREFIXED for libucontext_makecontext

pull/22/head
osy 2021-01-02 18:33:27 -08:00
parent 171869b844
commit a995dc6189
10 changed files with 20 additions and 10 deletions

View File

@ -54,5 +54,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
va_end(va);
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

@ -58,5 +58,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
va_end(va);
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

@ -57,5 +57,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
*sp++ = (libucontext_greg_t) ucp->uc_link;
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

@ -57,5 +57,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(), int argc, .
va_end(va);
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

@ -58,5 +58,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(), int argc, .
va_end(va);
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

@ -58,5 +58,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
va_end(va);
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

@ -64,5 +64,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
ucp->uc_mcontext.gregs[15] = (uintptr_t) sp;
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

@ -55,5 +55,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
va_end(va);
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

@ -55,5 +55,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
*argp++ = (uintptr_t) ucp->uc_link;
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

@ -75,5 +75,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
va_end(va);
}
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif