public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] gcc6 FreeBSD rs6000 PIE handling
@ 2015-10-31 23:47 Andreas Tobler
  2015-11-02 21:54 ` Andreas Tobler
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Tobler @ 2015-10-31 23:47 UTC (permalink / raw)
  To: GCC Patches

Hi,

this is the part for gcc trunk. As mentioned in the previous mail (same 
subject for gcc5) I forgot to adapt the PIE bits for FreeBSD powerpc64.

The patch below lets me bootstrap a current gcc with itself.

I'll commit this part if there are no objections.

Thanks,
Andreas

2015-10-31  Andreas Tobler  <andreast@gcc.gnu.org>

	* config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
	PIE executables.

Index: rs6000/freebsd64.h
===================================================================
--- rs6000/freebsd64.h	(revision 229634)
+++ 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_SPEC ":-K PIC} \
+%{mrelocatable} %{mrelocatable-lib} %{" FPIE_OR_FPIC_SPEC ":-K PIC} \
  %{memb} %{!memb: %{msdata=eabi: -memb}} \
  %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
      %{mcall-freebsd: -mbig} \

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] gcc6 FreeBSD rs6000 PIE handling
  2015-10-31 23:47 [patch] gcc6 FreeBSD rs6000 PIE handling Andreas Tobler
@ 2015-11-02 21:54 ` Andreas Tobler
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Tobler @ 2015-11-02 21:54 UTC (permalink / raw)
  To: GCC Patches

On 31.10.15 22:34, Andreas Tobler wrote:
> Hi,
>
> this is the part for gcc trunk. As mentioned in the previous mail (same
> subject for gcc5) I forgot to adapt the PIE bits for FreeBSD powerpc64.
>
> The patch below lets me bootstrap a current gcc with itself.
>
> I'll commit this part if there are no objections.

Committed: r229680

Andreas
>
> 2015-10-31  Andreas Tobler  <andreast@gcc.gnu.org>
>
> 	* config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
> 	PIE executables.
>
> Index: rs6000/freebsd64.h
> ===================================================================
> --- rs6000/freebsd64.h	(revision 229634)
> +++ 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_SPEC ":-K PIC} \
> +%{mrelocatable} %{mrelocatable-lib} %{" FPIE_OR_FPIC_SPEC ":-K PIC} \
>    %{memb} %{!memb: %{msdata=eabi: -memb}} \
>    %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
>        %{mcall-freebsd: -mbig} \
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-02 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-31 23:47 [patch] gcc6 FreeBSD rs6000 PIE handling Andreas Tobler
2015-11-02 21:54 ` Andreas Tobler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).