git: 5d79b5445e12 - main - libc: centralize makecontext symbols

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Wed, 15 Nov 2023 23:46:48 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=5d79b5445e12873b316a04de352d12a02bfe2d53

commit 5d79b5445e12873b316a04de352d12a02bfe2d53
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-11-15 23:42:18 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-11-15 23:42:18 +0000

    libc: centralize makecontext symbols
    
    Declare makecontext() and __makecontext() symbols centrally as they are
    always implemented.
    
    Reviewed by:    imp, kib
    Differential Revision:  https://reviews.freebsd.org/D42617
---
 lib/libc/aarch64/Symbol.map   | 5 -----
 lib/libc/amd64/Symbol.map     | 2 --
 lib/libc/arm/Symbol.map       | 2 --
 lib/libc/gen/Symbol.map       | 2 ++
 lib/libc/i386/Symbol.map      | 2 --
 lib/libc/powerpc/Symbol.map   | 2 --
 lib/libc/powerpc64/Symbol.map | 2 --
 lib/libc/riscv/Symbol.map     | 5 -----
 8 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/lib/libc/aarch64/Symbol.map b/lib/libc/aarch64/Symbol.map
index a02c71c82b7d..39cc43d12c26 100644
--- a/lib/libc/aarch64/Symbol.map
+++ b/lib/libc/aarch64/Symbol.map
@@ -11,9 +11,4 @@ FBSD_1.0 {
 	fpsetmask;
 	__infinity;
 	__nan;
-	makecontext;
-};
-
-FBSDprivate_1.0 {
-	__makecontext;
 };
diff --git a/lib/libc/amd64/Symbol.map b/lib/libc/amd64/Symbol.map
index ea3b7866b718..6c514097dd0e 100644
--- a/lib/libc/amd64/Symbol.map
+++ b/lib/libc/amd64/Symbol.map
@@ -16,7 +16,6 @@ FBSD_1.0 {
 	fpsetround;
 	__infinity;
 	__nan;
-	makecontext;
 	rfork_thread;
 	amd64_get_fsbase;
 	amd64_get_gsbase;
@@ -43,7 +42,6 @@ FBSDprivate_1.0 {
 	_getlogin;
 
 	___longjmp;
-	__makecontext;
 	__longjmp;
 	__signalcontext;
 	signalcontext;
diff --git a/lib/libc/arm/Symbol.map b/lib/libc/arm/Symbol.map
index 4be0a7b02964..5f6cc934410f 100644
--- a/lib/libc/arm/Symbol.map
+++ b/lib/libc/arm/Symbol.map
@@ -9,7 +9,6 @@ FBSD_1.0 {
 	fabs;
 	__infinity;
 	__nan;
-	makecontext;
 	brk;
 	sbrk;
 };
@@ -34,7 +33,6 @@ FBSDprivate_1.0 {
 
 	__aeabi_read_tp;
 	___longjmp;
-	__makecontext;
 	__longjmp;
 	signalcontext;
 	_signalcontext;
diff --git a/lib/libc/gen/Symbol.map b/lib/libc/gen/Symbol.map
index 2b8195244734..a21bf2430846 100644
--- a/lib/libc/gen/Symbol.map
+++ b/lib/libc/gen/Symbol.map
@@ -196,6 +196,7 @@ FBSD_1.0 {
 	ldexp;
 	lockf;
 	lrand48;
+	makecontext;
 	modf;
 	mrand48;
 	nice;
@@ -577,4 +578,5 @@ FBSDprivate_1.0 {
 	__fillcontextx;
 	__fillcontextx2;
 	__getcontextx_size;
+	__makecontext;
 };
diff --git a/lib/libc/i386/Symbol.map b/lib/libc/i386/Symbol.map
index 3b3df6b37202..ac2cb068d946 100644
--- a/lib/libc/i386/Symbol.map
+++ b/lib/libc/i386/Symbol.map
@@ -10,7 +10,6 @@ FBSD_1.0 {
 	__flt_rounds;
 	__nan;
 	__infinity;
-	makecontext;
 	rfork_thread;
 	brk;
 	i386_clr_watch;
@@ -40,7 +39,6 @@ FBSDprivate_1.0 {
 	_getlogin;
 
 	___longjmp;
-	__makecontext;
 	__longjmp;
 	__signalcontext;
 	signalcontext;
diff --git a/lib/libc/powerpc/Symbol.map b/lib/libc/powerpc/Symbol.map
index 93e79fe96733..9f6f88048984 100644
--- a/lib/libc/powerpc/Symbol.map
+++ b/lib/libc/powerpc/Symbol.map
@@ -14,7 +14,6 @@ FBSD_1.0 {
 	fpsetround;
 	__infinity;
 	__nan;
-	makecontext;
 	brk;
 	sbrk;
 };
@@ -28,7 +27,6 @@ FBSDprivate_1.0 {
 	_getlogin;
 
 	_fpgetsticky;
-	__makecontext;
 	__longjmp;
 	signalcontext;
 	__signalcontext;
diff --git a/lib/libc/powerpc64/Symbol.map b/lib/libc/powerpc64/Symbol.map
index 6af9a0103816..63638bbb8908 100644
--- a/lib/libc/powerpc64/Symbol.map
+++ b/lib/libc/powerpc64/Symbol.map
@@ -14,7 +14,6 @@ FBSD_1.0 {
 	fpsetround;
 	__infinity;
 	__nan;
-	makecontext;
 	brk;
 	sbrk;
 };
@@ -24,7 +23,6 @@ FBSDprivate_1.0 {
 	_getlogin;
 
 	_fpgetsticky;
-	__makecontext;
 	__longjmp;
 	signalcontext;
 	__signalcontext;
diff --git a/lib/libc/riscv/Symbol.map b/lib/libc/riscv/Symbol.map
index 2e0467744778..79ee74e81a88 100644
--- a/lib/libc/riscv/Symbol.map
+++ b/lib/libc/riscv/Symbol.map
@@ -10,9 +10,4 @@ FBSD_1.0 {
 	fpsetmask;
 	__infinity;
 	__nan;
-	makecontext;
-};
-
-FBSDprivate_1.0 {
-	__makecontext;
 };