Author: bdragon
Date: Tue Aug 25 18:54:10 2020
New Revision: 364780
URL: https://svnweb.freebsd.org/changeset/base/364780

Log:
  [PowerPC] Apply the ppc32 GOT overflow fix to powerpcspe
  
  powerpcspe is also a 32 bit ppc platform, and also needs to be -fPIC to
  avoid overflowing the GOT.
  
  Sponsored by: Tag1 Consulting, Inc.

Modified:
  head/cddl/lib/libzpool/Makefile

Modified: head/cddl/lib/libzpool/Makefile
==============================================================================
--- head/cddl/lib/libzpool/Makefile     Tue Aug 25 18:32:43 2020        
(r364779)
+++ head/cddl/lib/libzpool/Makefile     Tue Aug 25 18:54:10 2020        
(r364780)
@@ -21,7 +21,7 @@ ACFLAGS+=     -Wa,--noexecstack
 ATOMIC_SRCS=   opensolaris_atomic.c
 .endif
 
-.if ${MACHINE_ARCH} == "powerpc"
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpcspe"
 # Don't waste GOT entries on small data.
 PICFLAG=       -fPIC
 .endif
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to