PING^N: [PATCH] Add --enable-static-pie to build static PIE [BZ #19574]
H.J. Lu
hjl.tools@gmail.com
Fri Nov 24 22:24:00 GMT 2017
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.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-enable-static-pie-configure-option-to-build-stat.patch
Type: text/x-patch
Size: 41379 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171124/2e00ff2e/attachment.bin>
More information about the Libc-alpha
mailing list