From 3f1b09ea81bdbc9eb71ab90b95f287e186be2a73 Mon Sep 17 00:00:00 2001 From: mortimer Date: Tue, 19 May 2020 11:23:55 +0000 Subject: Disable builtins on ppc in order to prevent the compiler from optimizing in calls to libc in the process boot code that might not work before things like the GOT are set up. Suggested by deraadt@ ok visa@ --- lib/csu/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/csu') diff --git a/lib/csu/Makefile b/lib/csu/Makefile index c005dec9a90..4f8b3712dc5 100644 --- a/lib/csu/Makefile +++ b/lib/csu/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.32 2019/07/01 15:55:50 kettenis Exp $ +# $OpenBSD: Makefile,v 1.33 2020/05/19 11:23:54 mortimer Exp $ OBJS= crt0.o gcrt0.o OBJS+= crtbegin.o crtend.o @@ -33,7 +33,7 @@ RCFLAGS+=-fno-stack-protector .endif # Prevent use of builtins in _dl_boot_bind(). -.if ${MACHINE_CPU} == "mips64" +.if ${MACHINE_CPU} == "mips64" || ${MACHINE_CPU} == "powerpc" RCFLAGS+=-fno-builtin .endif -- cgit v1.2.3