The architecture already has big PIE.  The issue is that clang doesn't
support secure-plt for small pic.  I haven't entirely figured out
what's going on here and we probably need some further fixes to clang
here.  On the other hand I think it is probably time to recognize
there is more and more bloat in the world.

Thoughts?

Index: share/mk/bsd.own.mk
===================================================================
RCS file: /cvs/src/share/mk/bsd.own.mk,v
retrieving revision 1.194
diff -u -p -r1.194 bsd.own.mk
--- share/mk/bsd.own.mk 28 Jan 2019 17:42:38 -0000      1.194
+++ share/mk/bsd.own.mk 5 Feb 2019 19:20:33 -0000
@@ -137,7 +137,8 @@ STATIC?=    -static ${STATICPIE}
 #SYS_INCLUDE=  symlinks
 
 # pic relocation flags.
-.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64")
+.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "powerpc" || \
+    ${MACHINE_ARCH} == "sparc64"
 PICFLAG?=-fPIC
 .else
 PICFLAG?=-fpic

Reply via email to