diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-06-28 13:43:49 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-06-28 13:43:49 +0000 |
commit | 82f05f7038fa65ca0f20878b116938633dcc582b (patch) | |
tree | 385948d22e72142a74875a5ad78c497731bf9c5c /lib/csu | |
parent | fc5716d2e6b6c1853104bfdb6cdcf051692cec0e (diff) |
Since clang only supports the "secure" PLT ABI for "big" PIC/PIE on powerpc,
stop building the csu code with -fpie on that platform.
ok guenther@, visa@
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/Makefile | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/csu/Makefile b/lib/csu/Makefile index 041aff66101..000f70a1196 100644 --- a/lib/csu/Makefile +++ b/lib/csu/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.30 2019/04/19 08:59:40 visa Exp $ +# $OpenBSD: Makefile,v 1.31 2019/06/28 13:43:48 kettenis Exp $ OBJS= crt0.o gcrt0.o OBJS+= crtbegin.o crtend.o @@ -15,14 +15,6 @@ CFLAGS+= -I${.CURDIR}/../../libexec/ld.so/${MACHINE_CPU} CFLAGS+= -fno-omit-frame-pointer .endif -# Override powerpc default of -fPIE -# XXX if this is safe, why not override CFLAGS for alpha and sparc64 too? -# Does it work because the csu bits come first and get the first few GOT -# entries? -.if ${MACHINE_ARCH} == "powerpc" -CFLAGS+= -fpie -.endif - .ifdef NOPIC PICFLAG= .elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" |