From 8d2e8f720516e88a896390763ff372a6e5a2550f Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 5 Jan 2024 19:04:53 +0000 Subject: [PATCH] libc: make syscall stubs empty for shared lib They are always replaced by libsys so just make them empty. In https://reviews.freebsd.org/D14609 x86 variants call abort2, but that requires per-arch assembly and should be of low value in the steady state. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908 --- lib/libc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 6a54f764108..7c728ffe644 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -117,6 +117,7 @@ NOASM= .include "${LIBC_SRCTOP}/stdlib/Makefile.inc" .include "${LIBC_SRCTOP}/stdtime/Makefile.inc" .include "${LIBC_SRCTOP}/string/Makefile.inc" +SHARED_CFLAGS+= -D'_SYSCALL_BODY(name)=' .include "${LIBSYS_SRCTOP}/Makefile.sys" .include "${LIBC_SRCTOP}/secure/Makefile.inc" .include "${LIBC_SRCTOP}/rpc/Makefile.inc"