summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2023-02-21 14:42:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2023-02-21 14:42:26 +0000
commitdf5cea71dd8537ba814b047a37d5b1a8c8d51097 (patch)
tree4316665535bf14baf58eafeb10ec3bc57d6b5cec /lib
parent96c03ad60ca7f1b12a313708d3cbad85dcb98d25 (diff)
pinsyscall(2) is not just for dynamic binaries anymore, so make the
text more generic
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/pinsyscall.28
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/sys/pinsyscall.2 b/lib/libc/sys/pinsyscall.2
index 633351fba2a..5f7d9b0058f 100644
--- a/lib/libc/sys/pinsyscall.2
+++ b/lib/libc/sys/pinsyscall.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pinsyscall.2,v 1.3 2023/02/21 02:13:27 deraadt Exp $
+.\" $OpenBSD: pinsyscall.2,v 1.4 2023/02/21 14:42:25 deraadt Exp $
.\"
.\" Copyright (c) 2023 Theo de Raadt <deraadt@openbsd.org>
.\"
@@ -32,10 +32,7 @@ system call specifies the
.Va start
to
.Va start + len
-range in the
-.Pa libc.so
-shared library where the call stub for the
-specified
+range in the adress space where the call stub for the specified
.Va syscall
resides.
This range is typically under 80 bytes long, and varies by architecture.
@@ -48,6 +45,7 @@ The shared library linker
automatically tells the kernel about
.Va SYS_execve
at startup.
+For static binaries, libc initialization performs the same action.
.Pp
Once the kernel knows the specific location in the address space where
that system call must be entered from, any attempt to use a system-call