diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-07-01 15:55:51 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-07-01 15:55:51 +0000 |
commit | 78076608990c8362382d3f64321c5619f88f860a (patch) | |
tree | b40be59123b9fba44ac0a263455cc19fcf169407 /lib/csu | |
parent | 73b11b533226f03280b1139a4b0a591b6db65a1c (diff) |
Need to compile rcrt0.o with -fno-jump-tables on powerpc as well.
ok visa@
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/csu/Makefile b/lib/csu/Makefile index 000f70a1196..c005dec9a90 100644 --- a/lib/csu/Makefile +++ b/lib/csu/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.31 2019/06/28 13:43:48 kettenis Exp $ +# $OpenBSD: Makefile,v 1.32 2019/07/01 15:55:50 kettenis Exp $ OBJS= crt0.o gcrt0.o OBJS+= crtbegin.o crtend.o @@ -32,9 +32,14 @@ RCFLAGS=-DRCRT0 RCFLAGS+=-fno-stack-protector .endif -# Prevent use of builtins and jump tables in _dl_boot_bind(). +# Prevent use of builtins in _dl_boot_bind(). .if ${MACHINE_CPU} == "mips64" -RCFLAGS+=-fno-builtin -fno-jump-tables +RCFLAGS+=-fno-builtin +.endif + +# Prevent use of jump tables in _dl_boot_bind(). +.if ${MACHINE_CPU} == "mips64" || ${MACHINE_CPU} == "powerpc" +RCFLAGS+=-fno-jump-tables .endif DEPS = ${OBJS:.o=.d} |