diff options
author | Ed Maste <emaste@FreeBSD.org> | 2017-12-05 20:19:13 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2017-12-05 20:19:13 +0000 |
commit | 19164ee6cd7dd72a333dbc07218c1f460ba108df (patch) | |
tree | 5c90c2bac69d59fad4bcf9fade9d1d9e59f5a097 | |
parent | ca94a1c6ca6cdf0e6bb1472f08a304be1aec3cb7 (diff) |
Notes
-rw-r--r-- | lib/libc/sys/openat.c | 1 | ||||
-rw-r--r-- | lib/libc/sys/setcontext.c | 1 | ||||
-rw-r--r-- | lib/libc/sys/swapcontext.c | 1 | ||||
-rw-r--r-- | sys/sys/cdefs.h | 4 |
4 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/sys/openat.c b/lib/libc/sys/openat.c index 1bd12ea2a8d8..586effe08f9d 100644 --- a/lib/libc/sys/openat.c +++ b/lib/libc/sys/openat.c @@ -43,7 +43,6 @@ __sym_compat(openat, __impl_openat, FBSD_1.1); __weak_reference(openat, __impl_openat); __sym_default(openat, openat, FBSD_1.2); -#pragma weak openat int openat(int fd, const char *path, int flags, ...) { diff --git a/lib/libc/sys/setcontext.c b/lib/libc/sys/setcontext.c index 31b888f2bcff..005b449b3725 100644 --- a/lib/libc/sys/setcontext.c +++ b/lib/libc/sys/setcontext.c @@ -42,7 +42,6 @@ __sym_compat(setcontext, __impl_setcontext, FBSD_1.0); __weak_reference(setcontext, __impl_setcontext); __sym_default(setcontext, setcontext, FBSD_1.2); -#pragma weak setcontext int setcontext(const ucontext_t *uc) { diff --git a/lib/libc/sys/swapcontext.c b/lib/libc/sys/swapcontext.c index 0a8125eeabb5..eab78c5731f6 100644 --- a/lib/libc/sys/swapcontext.c +++ b/lib/libc/sys/swapcontext.c @@ -43,7 +43,6 @@ __sym_compat(swapcontext, __impl_swapcontext, FBSD_1.0); __weak_reference(swapcontext, __impl_swapcontext); __sym_default(swapcontext, swapcontext, FBSD_1.2); -#pragma weak swapcontext int swapcontext(ucontext_t *oucp, const ucontext_t *ucp) { diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index bef96e23beb7..2d7acde3fa61 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -551,7 +551,7 @@ #define __sym_compat(sym,impl,verid) \ __asm__(".symver " #impl ", " #sym "@" #verid) #define __sym_default(sym,impl,verid) \ - __asm__(".symver " #impl ", " #sym "@@" #verid) + __asm__(".symver " #impl ", " #sym "@@@" #verid) #else #define __weak_reference(sym,alias) \ __asm__(".weak alias"); \ @@ -563,7 +563,7 @@ #define __sym_compat(sym,impl,verid) \ __asm__(".symver impl, sym@verid") #define __sym_default(impl,sym,verid) \ - __asm__(".symver impl, sym@@verid") + __asm__(".symver impl, sym@@@verid") #endif /* __STDC__ */ #endif /* __GNUC__ || __INTEL_COMPILER */ |