Re: Reduce function call costs on ELF platforms - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Reduce function call costs on ELF platforms
Date
Msg-id 950df639-0447-17c3-89c4-d651cad63915@dunslane.net
Whole thread Raw
In response to Re: Reduce function call costs on ELF platforms  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On 11/24/21 22:57, Andres Freund wrote:
>
>> Which things does it break exactly?
> -Bsymbolic causes symbols that are defined and referenced within one shared
> library to use that definition. E.g. if a shared lib has a function
> "do_something()" and some of its code calls do_something(), you cannot use
> LD_PRELOAD (or a definition in the main binary) to redirect the call to
> do_something() inside the shared library to something else.
>
> I.e. if a shared library calls a function that's *not* defined within that
> shared library, -Bsymbolic doesn't have an effect for that symbol.
>
>
>> I have a case where a library that
>> is LD_PRELOADed calls PQsetSSLKeyPassHook_OpenSSL() in its constructor
>> function. I'd be very unhappy if that stopped working (and so would our
>> client).
> Bsymbolic shouldn't affect that at all.
>

Thanks for the explanation.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Zhihong Yu
Date:
Subject: Re: Non-decimal integer literals
Next
From: Mark Dilger
Date:
Subject: Re: XMAX_LOCK_ONLY and XMAX_COMMITTED (fk/multixact code)