summaryrefslogtreecommitdiff
path: root/libexec/ld.so
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2019-11-10 22:18:15 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2019-11-10 22:18:15 +0000
commit171658b09acd99501a3dc4a37e8c273019a34775 (patch)
tree53701550aafa0c2c8f69ffaf9d9bffd96c224b53 /libexec/ld.so
parent5d97220cdd4895642b1f572d034e4c26d6b8f235 (diff)
Recommit CHECK_LDSO bits for mips64, verified on both loongson and octeon.
ok visa@
Diffstat (limited to 'libexec/ld.so')
-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
+