On Tue, Aug 08, 2017 at 09:45:49PM +, Joseph Myers wrote:
> On Mon, 7 Aug 2017, H.J. Lu wrote:
> > https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00011.html
>
> This patch is OK.
Is this OK for gcc-7 and gcc-6 too? I'm asking not just to fix
"-static -pie" on x86 but because I'd like to fix -
On Mon, 7 Aug 2017, H.J. Lu wrote:
> Hi Joseph,
>
> Can you take a look at this patch:
>
> https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00011.html
This patch is OK.
--
Joseph S. Myers
jos...@codesourcery.com
On Mon, Jul 31, 2017 at 7:04 PM, H.J. Lu wrote:
> On Mon, Jul 31, 2017 at 5:37 PM, Alan Modra wrote:
>> On Mon, Jul 31, 2017 at 08:04:13AM -0700, H.J. Lu wrote:
>>> On Mon, Jul 24, 2017 at 10:24 AM, H.J. Lu wrote:
>>> > On Sun, Jul 23, 2017 at 8:14 AM, H.J. Lu wrote:
>>> >> -static and -pie tog
> https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01678.html minus some PR
> numbers and the powerpc specific part, plus testsuite (which looks to
> me like HJ copied pie-static-1.c to pie-static-2.c then forgot to
> change the order of -pie and -static), plus a tweak to
> LINK_COMMAND
to
change the order of -pie and -static), plus a tweak to
LINK_COMMAND_SPEC. The LINK_COMMAND_SPEC change looks good to me,
except for the comment which doesn't exactly match the code. That
change is necessary because I ignorantly removed %{no-pie:} from
LINK_PIE_SPEC without adding it back elsewhere
updated patch with
> a testcase.
>
PING. I am enclosing the patch here.
Thanks.
--
H.J.
From ea702c99286ab92a4b94f676d2340ce55fd173c3 Mon Sep 17 00:00:00 2001
From: Alan Modra
Date: Thu, 20 Jul 2017 09:57:36 -0700
Subject: [PATCH] PR driver/81523: Make -static override -pie
-static
o add %{no-pie:} to LINK_COMMAND_SPEC to prevent an error
message when PIE isn't enabled by default. Here is the updated patch with
a testcase.
--
H.J.
From e58df985090761e69668aee827afa99744d559c5 Mon Sep 17 00:00:00 2001
From: Alan Modra
Date: Thu, 20 Jul 2017 09:57:36 -0700
Subject: [PA
-static and -pie together behave differently depending on whether GCC is
configured with --enable-default-pie. On x86, "-static -pie" fails to
create executable when --enable-default-pie isn't used, but creates a
static executable when --enable-default-pie is used. This patch makes
-static comple