aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2024-04-19 21:21:46 +0000
committerBrooks Davis <brooks@FreeBSD.org>2024-04-19 21:25:04 +0000
commit6e83504c603157e9fc1660d2a1556036492662fc (patch)
treed1779ccfc2801295fb19700f7b6b9ee12ea074b6 /lib/libc
parent68a3a7fc94833020403190c20bd9be186c6156ce (diff)
downloadsrc-6e83504c603157e9fc1660d2a1556036492662fc.tar.gz
src-6e83504c603157e9fc1660d2a1556036492662fc.zip
Revert "lib{c,sys}: normalize export of openat, setcontext, and swapcontext"
I put the symbols in the wrong file (should have been lib/libc/sys/Symbol.map), added a duplicate pdfork entry due to a botch rebase, and there seems to be a issue with gcc13/binutils not exposing the symbols so revert the whole thing while I debug. This reverts commit ee632fb9eb4a060a4087a7f5425bfe36e65cda61.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/openat.c1
-rw-r--r--lib/libc/sys/setcontext.c1
-rw-r--r--lib/libc/sys/swapcontext.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/sys/openat.c b/lib/libc/sys/openat.c
index 389360a5a9f5..1cd8e7d90745 100644
--- a/lib/libc/sys/openat.c
+++ b/lib/libc/sys/openat.c
@@ -37,6 +37,7 @@
__weak_reference(__sys_openat, __openat);
__sym_compat(openat, __impl_openat, FBSD_1.1);
__weak_reference(openat, __impl_openat);
+__sym_default(openat, openat, FBSD_1.2);
#pragma weak openat
int
diff --git a/lib/libc/sys/setcontext.c b/lib/libc/sys/setcontext.c
index 301cca84c4f9..96b5dc115067 100644
--- a/lib/libc/sys/setcontext.c
+++ b/lib/libc/sys/setcontext.c
@@ -36,6 +36,7 @@
__weak_reference(__sys_setcontext, __setcontext);
__sym_compat(setcontext, __impl_setcontext, FBSD_1.0);
__weak_reference(setcontext, __impl_setcontext);
+__sym_default(setcontext, setcontext, FBSD_1.2);
#pragma weak setcontext
int
diff --git a/lib/libc/sys/swapcontext.c b/lib/libc/sys/swapcontext.c
index 42793a516c70..b69a5b19e698 100644
--- a/lib/libc/sys/swapcontext.c
+++ b/lib/libc/sys/swapcontext.c
@@ -38,6 +38,7 @@
__weak_reference(__sys_swapcontext, __swapcontext);
__sym_compat(swapcontext, __impl_swapcontext, FBSD_1.0);
__weak_reference(swapcontext, __impl_swapcontext);
+__sym_default(swapcontext, swapcontext, FBSD_1.2);
#pragma weak swapcontext
int