summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-06-27 18:35:07 +0000
committerkettenis <kettenis@openbsd.org>2020-06-27 18:35:07 +0000
commit7bccb2005a2d72cfe42eb6761bbc6dd66c3c597c (patch)
tree6e7d57b2e8b6d080c0c1d16bbd2e188d0bf344ff
parentremove the spacing around "arp | rarp", as prompted by schwarze; (diff)
downloadwireguard-openbsd-7bccb2005a2d72cfe42eb6761bbc6dd66c3c597c.tar.xz
wireguard-openbsd-7bccb2005a2d72cfe42eb6761bbc6dd66c3c597c.zip
Prevent the use of jump tables on powerpc64 as well.
ok patrick@, drahn@
-rw-r--r--lib/csu/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/csu/Makefile b/lib/csu/Makefile
index f5242bb8737..475f504a4a5 100644
--- a/lib/csu/Makefile
+++ b/lib/csu/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.34 2020/06/25 04:11:59 drahn Exp $
+# $OpenBSD: Makefile,v 1.35 2020/06/27 18:35:07 kettenis Exp $
OBJS= crt0.o gcrt0.o
OBJS+= crtbegin.o crtend.o
@@ -42,7 +42,8 @@ RCFLAGS+= -mno-vsx -mno-altivec
.endif
# Prevent use of jump tables in _dl_boot_bind().
-.if ${MACHINE_CPU} == "mips64" || ${MACHINE_CPU} == "powerpc"
+.if ${MACHINE_CPU} == "mips64" || ${MACHINE_CPU} == "powerpc" || \
+ ${MACHINE_CPU} == "powerpc64"
RCFLAGS+=-fno-jump-tables
.endif