Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2020 18:54:11 +0000 (UTC)
From:      Brandon Bergren <bdragon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364780 - head/cddl/lib/libzpool
Message-ID:  <202008251854.07PIsBkR062342@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008251854.07PIsBkR062342>