Module Name: src
Committed By: skrll
Date: Sat Dec 4 08:45:56 UTC 2021
Modified Files:
src/libexec/ld.elf_so: Makefile
Log Message:
Error if there are undefined symbols, e.g. _rtld_call_ifunc
To generate a diff of this commit:
cvs rdiff -u -r1.143 -r1.144 src/libexec/ld.elf_so/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/ld.elf_so/Makefile
diff -u src/libexec/ld.elf_so/Makefile:1.143 src/libexec/ld.elf_so/Makefile:1.144
--- src/libexec/ld.elf_so/Makefile:1.143 Sun Feb 9 09:11:59 2020
+++ src/libexec/ld.elf_so/Makefile Sat Dec 4 08:45:56 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.143 2020/02/09 09:11:59 kamil Exp $
+# $NetBSD: Makefile,v 1.144 2021/12/04 08:45:56 skrll Exp $
#
# NOTE: when changing ld.so, ensure that ldd still compiles.
#
@@ -49,6 +49,7 @@ LDFLAGS+= ${${ACTIVE_CC} == "clang":? -W
-shared -nostartfiles -nodefaultlibs
LDFLAGS+= -Wl,-static
LDFLAGS+= -Wl,--warn-shared-textrel
+LDFLAGS+= -Wl,--no-undefined
LDFLAGS+= -Wl,-Map=${.TARGET}.map
COPTS+= -fvisibility=hidden