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

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.

Thanks,
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} \

^ 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 21:30 [patch] gcc5 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).