Date: Sun, 12 Apr 2026 20:32:29 +0000 From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 660498986a8e - main - fork.2: note that all methods to pre-resolve symbols have consequences Message-ID: <69dc015d.46981.4bf1bc99@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=660498986a8e56025d9d2f9c6a0813c09a27ba8e commit 660498986a8e56025d9d2f9c6a0813c09a27ba8e Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2026-04-12 09:16:13 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2026-04-12 20:29:42 +0000 fork.2: note that all methods to pre-resolve symbols have consequences Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D56362 --- 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 forkhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69dc015d.46981.4bf1bc99>
