Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2023 22:29:49 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e1508337641a - stable/14 - libc: further centralize syscall symbols
Message-ID:  <202312132229.3BDMTnN6024521@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by brooks:

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

commit e1508337641ac21ac71e92681edf4f156039c769
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-11-15 23:40:33 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-12-13 22:08:13 +0000

    libc: further centralize syscall symbols
    
    All architectures necessarily implement _exit(2) and vfork(2) so
    declare them in sys/Symbol.map.
    
    Reviewed by:    imp, kib, emaste
    Differential Revision:  https://reviews.freebsd.org/D42614
    
    (cherry picked from commit e4a1800f06884dc00931f55d0fa8cd9ce473a83e)
---
 lib/libc/aarch64/Symbol.map   | 4 ----
 lib/libc/amd64/Symbol.map     | 4 ----
 lib/libc/arm/Symbol.map       | 4 ----
 lib/libc/i386/Symbol.map      | 4 ----
 lib/libc/powerpc/Symbol.map   | 4 ----
 lib/libc/powerpc64/Symbol.map | 4 ----
 lib/libc/riscv/Symbol.map     | 4 ----
 lib/libc/sys/Symbol.map       | 2 ++
 8 files changed, 2 insertions(+), 28 deletions(-)

diff --git a/lib/libc/aarch64/Symbol.map b/lib/libc/aarch64/Symbol.map
index 574b5e49d106..5e71a32786b4 100644
--- a/lib/libc/aarch64/Symbol.map
+++ b/lib/libc/aarch64/Symbol.map
@@ -4,9 +4,6 @@
  * stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
  */
 FBSD_1.0 {
-	/* PSEUDO syscalls */
-	_exit;
-
 	.mcount;
 	_setjmp;
 	_longjmp;
@@ -24,7 +21,6 @@ FBSD_1.0 {
 	htons;
 	ntohl;
 	ntohs;
-	vfork;
 	makecontext;
 };
 
diff --git a/lib/libc/amd64/Symbol.map b/lib/libc/amd64/Symbol.map
index 0bd3dabdb19e..445220db11b7 100644
--- a/lib/libc/amd64/Symbol.map
+++ b/lib/libc/amd64/Symbol.map
@@ -4,9 +4,6 @@
  * stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
  */
 FBSD_1.0 {
-	/* PSEUDO syscalls */
-	_exit;
-
 	.mcount;
 	_setjmp;
 	_longjmp;
@@ -37,7 +34,6 @@ FBSD_1.0 {
 	amd64_set_gsbase;
 	brk;
 	sbrk;
-	vfork;
 };
 
 FBSD_1.6 {
diff --git a/lib/libc/arm/Symbol.map b/lib/libc/arm/Symbol.map
index d91e681f4478..8cb5cbe232d8 100644
--- a/lib/libc/arm/Symbol.map
+++ b/lib/libc/arm/Symbol.map
@@ -4,9 +4,6 @@
  * stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
  */
 FBSD_1.0 {
-	/* PSEUDO syscalls */
-	_exit;
-
 	__mcount;
 	_setjmp;
 	_longjmp;
@@ -23,7 +20,6 @@ FBSD_1.0 {
 	htons;
 	ntohl;
 	ntohs;
-	vfork;
 	brk;
 	sbrk;
 };
diff --git a/lib/libc/i386/Symbol.map b/lib/libc/i386/Symbol.map
index d09c98487f64..1ecfb4ecda00 100644
--- a/lib/libc/i386/Symbol.map
+++ b/lib/libc/i386/Symbol.map
@@ -4,9 +4,6 @@
  * stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
  */
 FBSD_1.0 {
-	/* PSEUDO syscalls */
-	_exit;
-
 	.mcount;
 	_setjmp;
 	_longjmp;
@@ -25,7 +22,6 @@ FBSD_1.0 {
 	htons;
 	ntohl;
 	ntohs;
-	vfork;
 	brk;
 	i386_clr_watch;
 	i386_get_fsbase;
diff --git a/lib/libc/powerpc/Symbol.map b/lib/libc/powerpc/Symbol.map
index ff99e09028db..2d883a02eeb9 100644
--- a/lib/libc/powerpc/Symbol.map
+++ b/lib/libc/powerpc/Symbol.map
@@ -4,9 +4,6 @@
  * stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
  */
 FBSD_1.0 {
-	/* PSEUDO syscalls */
-	_exit;
-
 	_mcount;
 	_setjmp;
 	_longjmp;
@@ -30,7 +27,6 @@ FBSD_1.0 {
 	ntohs;
 	brk;
 	sbrk;
-	vfork;
 };
 
 FBSD_1.3 {
diff --git a/lib/libc/powerpc64/Symbol.map b/lib/libc/powerpc64/Symbol.map
index bad72c5a6efc..2de7ffb241e7 100644
--- a/lib/libc/powerpc64/Symbol.map
+++ b/lib/libc/powerpc64/Symbol.map
@@ -4,9 +4,6 @@
  * stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
  */
 FBSD_1.0 {
-	/* PSEUDO syscalls */
-	_exit;
-
 	_mcount;
 	_setjmp;
 	_longjmp;
@@ -30,7 +27,6 @@ FBSD_1.0 {
 	ntohs;
 	brk;
 	sbrk;
-	vfork;
 };
 
 FBSDprivate_1.0 {
diff --git a/lib/libc/riscv/Symbol.map b/lib/libc/riscv/Symbol.map
index 6726863e9b97..359a8238fb32 100644
--- a/lib/libc/riscv/Symbol.map
+++ b/lib/libc/riscv/Symbol.map
@@ -4,9 +4,6 @@
  * stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
  */
 FBSD_1.0 {
-	/* PSEUDO syscalls */
-	_exit;
-
 	_setjmp;
 	_longjmp;
 	fabs;
@@ -23,7 +20,6 @@ FBSD_1.0 {
 	htons;
 	ntohl;
 	ntohs;
-	vfork;
 	makecontext;
 };
 
diff --git a/lib/libc/sys/Symbol.map b/lib/libc/sys/Symbol.map
index 05a2f21d554e..b59ec1858ffd 100644
--- a/lib/libc/sys/Symbol.map
+++ b/lib/libc/sys/Symbol.map
@@ -30,6 +30,7 @@ FBSD_1.0 {
 	__setugid;
 	__syscall;
 	__sysctl;
+	_exit;
 	_umtx_op;
 	abort2;
 	accept;
@@ -283,6 +284,7 @@ FBSD_1.0 {
 	utrace;
 	uuidgen;
 	vadvise;
+	vfork;
 	wait4;
 	write;
 	writev;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312132229.3BDMTnN6024521>