build: respect EXPORT_UNPREFIXED for libucontext_makecontext

pull/25/head
osy 2021-01-02 18:33:27 -08:00 committed by Ariadne Conill
parent e45956896a
commit 73d5e101ad
10 changed files with 20 additions and 10 deletions

View File

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

View File

@ -56,5 +56,6 @@ libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int arg
va_end(va); va_end(va);
} }
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext"))); 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
*sp++ = (libucontext_greg_t) ucp->uc_link; *sp++ = (libucontext_greg_t) ucp->uc_link;
} }
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext"))); 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)(), int argc, .
va_end(va); va_end(va);
} }
#ifdef EXPORT_UNPREFIXED
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext"))); extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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