Hello, On Wed, 6 Apr 2022, Cristian Rodríguez wrote:
On Wed, Apr 6, 2022 at 8:54 PM Aaron Puchert <aaronpuchert@alice-dsl.net> wrote:
Can you elaborate on this? The GOT is still filled out by the dynamic linker, so if the linker thinks a symbol should be interposed (and the logic behind interposition is architecture-independent of course), why can it not write the address of a different function into the GOT?
https://github.com/bminor/binutils-gdb/blob/5f0b6b77f11ca1484b69babd7ab6729e... contains the logic .. apparently it no longer does it depending on BIND_NOW..it used to..but was apparently reverted because it broke LD_AUDIT..
Huh.. so I have to use Wl,-Bsymbolic-functions then?
I had something to say about Bsymbolic-functions recently in an internal thread, which found its way to stackoverflow via a colleague. It's not quite 100% precise and conflates some things, but essentially says the right thing: don't use it :) https://stackoverflow.com/a/71559422/1817805
-fvisibility=protected did not work the last time I tried either.
For which purpose? Ciao, Michael.