diff options
| author | skrll <skrll@NetBSD.org> | 2021-12-04 08:45:56 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2021-12-04 08:45:56 +0000 |
| commit | 72cb737bd1d67667b843a93065af6f8492a59526 (patch) | |
| tree | b1267e5a47d228af504cedcdc351147138439532 /libexec/ld.elf_so | |
| parent | 730729207a69061ba14830d7ad8978587a186cad (diff) | |
Error if there are undefined symbols, e.g. _rtld_call_ifunc
Diffstat (limited to 'libexec/ld.elf_so')
| -rw-r--r-- | libexec/ld.elf_so/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile index 94538229877..2a2ebc1f16a 100644 --- a/libexec/ld.elf_so/Makefile +++ b/libexec/ld.elf_so/Makefile @@ -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":? -Wl,-Bsymbolic : -symbolic} \ -shared -nostartfiles -nodefaultlibs LDFLAGS+= -Wl,-static LDFLAGS+= -Wl,--warn-shared-textrel +LDFLAGS+= -Wl,--no-undefined LDFLAGS+= -Wl,-Map=${.TARGET}.map COPTS+= -fvisibility=hidden |
