This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PING^N: [PATCH] Add --enable-static-pie to build static PIE [BZ #19574]
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)