[patch] gcc5 FreeBSD rs6000 PIE handling

Andreas Tobler andreast-list@fgznet.ch
Mon Nov 2 21:54:00 GMT 2015


On 31.10.15 22:28, Andreas Tobler wrote:
> Hi,
>
> I forgot to adapt the pie bits for powerpc64 FreeBSD back in May when I
> committed the pie support for FreeBSD.
> Without the below patch I'm not able to bootstrap a current gcc on
> FreeBSD powerpc64.
>
> The patch is against gcc-5, the patch for trunk will follow.
>
> If there are no objections I'll commit this bit in the next days. It is
> FreeBSD only.


Committed: r229679

Andreas


> 2015-10-31  Andreas Tobler  <andreast@gcc.gnu.org>
>
> 	* config/rs6000/freebsd64.h (ASM_SPEC32): Adapt spec to handle PIE
> 	executables.
>
> Index: gcc/config/rs6000/freebsd64.h
> ===================================================================
> --- gcc/config/rs6000/freebsd64.h	(revision 229623)
> +++ gcc/config/rs6000/freebsd64.h	(working copy)
> @@ -130,7 +130,7 @@
>    #define	LINK_OS_FREEBSD_SPEC
> "%{m32:%(link_os_freebsd_spec32)}%{!m32:%(link_os_freebsd_spec64)}"
>
>    #define ASM_SPEC32 "-a32 \
> -%{mrelocatable} %{mrelocatable-lib} %{fpic:-K PIC} %{fPIC:-K PIC} \
> +%{mrelocatable} %{mrelocatable-lib} %{fpic|fpie|fPIC|fPIE:-K PIC} \
>    %{memb} %{!memb: %{msdata=eabi: -memb}} \
>    %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
>        %{mcall-freebsd: -mbig} \
>



More information about the Gcc-patches mailing list