summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2019-11-10 22:18:14 +0000
committerguenther <guenther@openbsd.org>2019-11-10 22:18:14 +0000
commit63ffa0e7ec40b5e0a811fc369de31f0d4f654362 (patch)
tree9204a651843f90376b7b7bc868b0e52b3c4e4e16 /libexec
parentAdd a Content-Security-Policy HTTP header that allows only CSS. (diff)
downloadwireguard-openbsd-63ffa0e7ec40b5e0a811fc369de31f0d4f654362.tar.xz
wireguard-openbsd-63ffa0e7ec40b5e0a811fc369de31f0d4f654362.zip
Recommit CHECK_LDSO bits for mips64, verified on both loongson and octeon.
ok visa@
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.so/mips64/Makefile.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/libexec/ld.so/mips64/Makefile.inc b/libexec/ld.so/mips64/Makefile.inc
index 07b80b9b760..61bba392f36 100644
--- a/libexec/ld.so/mips64/Makefile.inc
+++ b/libexec/ld.so/mips64/Makefile.inc
@@ -1,4 +1,12 @@
-# $OpenBSD: Makefile.inc,v 1.7 2019/10/21 02:36:43 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.8 2019/11/10 22:18:14 guenther Exp $
# no jump tables in _dl_boot_bind()
CFLAGS += -fno-jump-tables
+
+CHECK_LDSO=c() { \
+ ! readelf -Wr $$1 | \
+ egrep -qv '^($$|[ R])| 0+(1203)? R_MIPS_(NONE|REL32) '; \
+ ! readelf -Ws $$1 | \
+ egrep -qv '^($$|S| *N| *[0-9]+:.*(LOCAL|GLOBAL +DEFAULT +[0-9]+ ))'; \
+ }; c
+