diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-27 18:35:08 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-27 18:35:08 +0000 |
commit | 6755f6ba5ae18c7adaefc1b441a31aa3614ac160 (patch) | |
tree | f5b34c3c4e22e624388b45f9420a92bc6c2b6d5c /lib/csu | |
parent | c5df3f040ee35428bb573a6674f2308131858512 (diff) |
Prevent the use of jump tables on powerpc64 as well.
ok patrick@, drahn@
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/Makefile | 5 |
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 |