git: ee3ef70c403e - stable/15 - fork.2: note that all methods to pre-resolve symbols have consequences
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Apr 2026 00:42:47 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=ee3ef70c403e4069f9c2958e5c3106c61e27f118
commit ee3ef70c403e4069f9c2958e5c3106c61e27f118
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-04-12 09:16:13 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-04-17 00:42:38 +0000
fork.2: note that all methods to pre-resolve symbols have consequences
(cherry picked from commit 660498986a8e56025d9d2f9c6a0813c09a27ba8e)
---
lib/libsys/fork.2 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/libsys/fork.2 b/lib/libsys/fork.2
index e59b208a9ff5..89a5631d7daa 100644
--- a/lib/libsys/fork.2
+++ b/lib/libsys/fork.2
@@ -138,6 +138,7 @@ services (
or
.Xr rtld 1 )
are available in the child if forked from multi-threaded parent.
+.Pp
In particular, if using dynamic linking, all dynamic symbols used by the
child after
.Fn _Fork
@@ -151,6 +152,7 @@ option to the static linker
or by using each symbol before the
.Fn _Fork
call to force the binding.
+Either of the methods subtly changes the ABI of the resulting binary.
.Sh RETURN VALUES
Upon successful completion,
.Fn fork