x86_64 / i686 no-PIE failures

Florian Weimer fweimer@redhat.com
Fri Nov 4 17:47:10 GMT 2022


* Fangrui Song:

> On 2022-11-04, Florian Weimer wrote:
>>* H. J. Lu:
>>> Given the linker change, we should drop these tests for non-PIE.
>
> Agree.
> https://sourceware.org/git/?p=glibc.git;a=commit;h=66a273d16a63d1ed74a8d14a210a04c6a0f5dd45
> ("elf: Disable ifuncmain{1,5,5pic,5pie} when using LLD")
> disabled some tests about exe's direct references to protected DSO symbols.
> binutils ports (aarch64 and x86) which have the strict behavior need to
> disable the tests as well.
>
>>If we don't take the address of foo_protected, we'd only have an
>>X86_64_PLT32 relocation.  Would that be valid from a linker perspective?

> R_X86_64_PLT32 is a PLT-generating relocation, not a direct reference.
> It is compatible with a protected definition in a DSO.

Thanks, I'm testing a patch.

Florian



More information about the Libc-alpha mailing list