From: "H.J. Lu" <hjl.tools@gmail.com>
To: Szabolcs Nagy <szabolcs.nagy@arm.com>
Cc: nd <nd@arm.com>, Joseph Myers <joseph@codesourcery.com>,
GNU C Library <libc-alpha@sourceware.org>
Subject: Re: PING^N: [PATCH] Add --enable-static-pie to build static PIE [BZ #19574]
Date: Thu, 30 Nov 2017 14:00:00 -0000 [thread overview]
Message-ID: <CAMe9rOqowyd18fzekOUEAJx7ZMdYae8SdUXwdeOfpPFJAeQrtA@mail.gmail.com> (raw)
In-Reply-To: <CAMe9rOpNdwd52vEnAUzOkmwkJXUWZz9-=dc9xfeZ96CYVM=8gQ@mail.gmail.com>
On Fri, Nov 24, 2017 at 2:24 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Fri, Nov 24, 2017 at 7:03 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Fri, Nov 24, 2017 at 5:06 AM, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:
>>> On 23/11/17 13:59, H.J. Lu wrote:
>>>> On Mon, Nov 20, 2017 at 4:16 AM, Szabolcs Nagy <szabolcs.nagy@arm.com> wrote:
>>>>> On 19/11/17 02:40, H.J. Lu wrote:
>>>>>> 3. Linker should resolve undefined weak symbols to 0 in static PIE:
>>>>>>
>>>>>> https://sourceware.org/bugzilla/show_bug.cgi?id=22269
>>>>>>
>>>>>> 4. Many ELF backend linkers incorrectly check bfd_link_pic for TLS
>>>>>> relocations, which should check bfd_link_executable instead:
>>>>>>
>>>>>> https://sourceware.org/bugzilla/show_bug.cgi?id=22263
>>>>>>
>>>>>> Tested on i686 and x86-64.
>>>>>>
>>>>>> Build results of build-many-glibcs.py with --enable-static-pie with all
>>>>>> patches for static PIE applied are
>>>>>>
>>>>>> PASS: glibcs-aarch64_be-linux-gnu build
>>>>>> PASS: glibcs-aarch64-linux-gnu build
>>>>>
>>>>> i'd expect these to fail on current binutils master
>>>>>
>>>>> (linking with undefweak symbol fails now because of the issues
>>>>> listed above, i'll try to prepare a binutils patch)
>>>>>
>>>>
>>>> Do you think you can fix arm64 for glibc 2.27?
>>>>
>>>
>>> the aarch64 glibc tests pass with the pie patches and
>>> the start code fix i posted (and with a fixed bfd linker).
>>
>> Great. Linker changes look quite straight forward. I will
>> update my commit message.
>
> Here is the patch with the updated commit message.
>
> Thanks.
Static PIE works on i686, x32 and x86-64 as well as aarch64
with a patch. I will check in my patch and update
https://sourceware.org/glibc/wiki/PortStatus
next week if there no objection.
--
H.J.
next prev parent reply other threads:[~2017-11-30 14:00 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-01 12:46 H.J. Lu
2017-11-01 16:04 ` Joseph Myers
2017-11-01 16:06 ` H.J. Lu
2017-11-03 17:57 ` H.J. Lu
2017-11-19 2:40 ` H.J. Lu
2017-11-19 15:39 ` Florian Weimer
2017-11-19 16:17 ` H.J. Lu
2017-11-19 19:52 ` H.J. Lu
2017-11-20 14:17 ` Joseph Myers
2017-11-23 14:09 ` H.J. Lu
2017-11-20 12:16 ` Szabolcs Nagy
2017-11-23 13:59 ` H.J. Lu
2017-11-24 13:07 ` Szabolcs Nagy
2017-11-24 15:03 ` H.J. Lu
2017-11-24 22:24 ` H.J. Lu
2017-11-30 14:00 ` H.J. Lu [this message]
2017-11-30 15:28 ` Joseph Myers
2017-11-30 16:24 ` H.J. Lu
2017-11-30 16:37 ` Joseph Myers
2017-11-30 16:56 ` H.J. Lu
2017-11-30 18:45 ` Carlos O'Donell
2017-11-30 21:45 ` Carlos O'Donell
2017-11-30 22:37 ` Maciej W. Rozycki
[not found] ` <CAMe9rOpDRknZANuSvXAqU_qaXzGRjt=uY5BZLJoE_o9Ke+9yfw@mail.gmail.com>
[not found] ` <alpine.DEB.2.00.1711302308170.31156@tp.orcam.me.uk>
2017-12-01 1:08 ` H.J. Lu
2017-12-01 1:58 ` Maciej W. Rozycki
2017-12-01 4:18 ` H.J. Lu
2017-12-01 9:59 ` Maciej W. Rozycki
2017-12-01 12:27 ` Joseph Myers
2017-12-01 13:35 ` H.J. Lu
2017-12-01 18:24 ` H.J. Lu
2017-12-08 13:14 ` H.J. Lu
2017-12-15 21:19 ` Carlos O'Donell
2017-12-16 2:04 ` H.J. Lu
2017-12-16 3:06 ` Carlos O'Donell
2017-12-18 13:37 ` Joseph Myers
2017-12-19 1:14 ` H.J. Lu
2017-12-15 11:58 H.J. Lu
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=CAMe9rOqowyd18fzekOUEAJx7ZMdYae8SdUXwdeOfpPFJAeQrtA@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=joseph@codesourcery.com \
--cc=libc-alpha@sourceware.org \
--cc=nd@arm.com \
--cc=szabolcs.nagy@arm.com \
/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).