public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andreas Tobler <andreast-list@fgznet.ch>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [patch] gcc5 FreeBSD rs6000 PIE handling
Date: Mon, 02 Nov 2015 21:54:00 -0000	[thread overview]
Message-ID: <5637DB8B.8060805@fgznet.ch> (raw)
In-Reply-To: <5635328A.6090608@fgznet.ch>

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

      reply	other threads:[~2015-11-02 21:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-31 21:30 Andreas Tobler
2015-11-02 21:54 ` Andreas Tobler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5637DB8B.8060805@fgznet.ch \
    --to=andreast-list@fgznet.ch \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).