svn commit: r364780 - head/cddl/lib/libzpool
Brandon Bergren
bdragon at FreeBSD.org
Tue Aug 25 18:54:11 UTC 2020
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
More information about the svn-src-all
mailing list