From 01bf47acba0a69be26a3c1661392e97a25246aac Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 21 Feb 2023 14:42:25 +0000 Subject: [PATCH] pinsyscall(2) is not just for dynamic binaries anymore, so make the text more generic --- lib/libc/sys/pinsyscall.2 | 8 +++----- 1 file 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 .\" @@ -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 -- 2.20.1