[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: Audit external function called indirectly via GOT



On Thu, Mar 22, 2018 at 8:36 AM, Carlos O'Donell <carlos@redhat.com> wrote:
>> Using ld.so-generated thunks for all GLOB_DAT function symbol
>> relocations would happen in audit mode only and should work with
>> existing binaries which were built with -Wl,-z,now.
>
> This is a very good reason to prefer one method over another, that we
> could fix existing binaries. However, I still think the complexity of
> such a fix outweighs what we are trying to fix. Do we have another use
> for such stubs?

If you take a look at BFD linker, it generates different PLT layouts for
MPX and CET.  It is totally transparent to ld.so.  Putting all PLT choices
as well as adding new ones in ld.so is very complex.  I don't believe they
belong to ld.so.

-- 
H.J.