[PATCH v3 2/2] elf: Add GNU_PROPERTY_1_NEEDED check

Florian Weimer fweimer@redhat.com
Thu Jul 8 07:27:12 GMT 2021


* H. J. Lu:

>> >> For (4), I think we need to set a different flag (or perhaps even
>> >> flags), and be really careful about what we do.  I think an output file
>> >> that is an executable will never require indirect-extern-access, but it
>> >
>> > What did you mean by that?  We need to compile executable with
>> > -fno-direct-extern-access for the whole scheme to work.
>>
>> indirect-extern-access imposes a requirement on executables, but
>> building an executable to comply with the new requirements will not
>
> That is correct.
>
>> impose anything on the rest of the link.  I do not see the markup
>> covering that.
>
> The absence of the marker tells ld.so that copy relocation against
> protected symbols in the executable is incompatible with the shared
> library with the protected symbol AND the marker.

Maybe I don't completely understand the direction in which is is moving.

Is the idea to phase out copy relocations in general?  Or just disable
them for protected symbols?

Thanks,
Florian



More information about the Binutils mailing list