aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/swapcontext.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2017-12-05 20:19:13 +0000
committerEd Maste <emaste@FreeBSD.org>2017-12-05 20:19:13 +0000
commit19164ee6cd7dd72a333dbc07218c1f460ba108df (patch)
tree5c90c2bac69d59fad4bcf9fade9d1d9e59f5a097 /lib/libc/sys/swapcontext.c
parentca94a1c6ca6cdf0e6bb1472f08a304be1aec3cb7 (diff)
use @@@ instead of @@ in __sym_default
Using .symver foo,foo@@VER causes foo and foo@@VER to be output to the .o file. This requires foo to be weak since the linker handles foo@@VER as foo. Using .symver foo,foo@@@VER causes just foo@@ver to be output and avoid the need for making foo weak. It also reduces the constraint on how exactly a linker has to handle foo and foo@@VER being present. Submitted by: Rafael EspĂ­ndola Reviewed by: dim, kib Differential Revision: https://reviews.freebsd.org/D11653
Notes
Notes: svn path=/head/; revision=326576
Diffstat (limited to 'lib/libc/sys/swapcontext.c')
-rw-r--r--lib/libc/sys/swapcontext.c1
1 files changed, 0 insertions, 1 deletions
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)
{