This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v1] Fix elf_irel for static-pie
On 3/21/19, Joseph Myers <joseph@codesourcery.com> wrote:
> On Wed, 20 Mar 2019, Siva Chandra wrote:
>
>> I do not know of any released linker which can exercise this correctly
>> that I can write tests.
>
> If a test needs an unreleased linker, we can consider whether to XFAIL it
> by default with a comment saying what linker version is needed, or whether
> a configure test is needed. But I think we at least need more details of
> exactly what (i.e., a test) fails before and passes after this patch, when
> given a new-enough linker.
>
lld should handle PIE satic like ld. ARCH_SETUP_IREL is for non-PIE static.
IFUNC relocations in PIE static should be treated just like IFUNC relocations
in other PIC/PIE binaries.
--
H.J.