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

From Bruce Momjian
Subject Re: Reduce function call costs on ELF platforms
Date
Msg-id 20211123011328.GA3320@momjian.us
Whole thread Raw
In response to Re: Reduce function call costs on ELF platforms  (Andres Freund <andres@anarazel.de>)
Responses Re: Reduce function call costs on ELF platforms
List pgsql-hackers
On Mon, Nov 22, 2021 at 03:57:45PM -0800, Andres Freund wrote:
> It does however change symbol binding, basically making all symbols bound
> eagerly. Which I guess theoretically could be considered an ABI change,
> because it removes the ability to intercept symbols referenced in a previously
> loaded shared library, with a subsequently loaded library (e.g. loaded with
> RTLD_DEEPBIND) function before the symbol is used. But that seems like a
> stretch. And I think most ELF platforms/linux distributions have/are moving
> towards using -Wl,-z,now -Wl,-z,relro also makes symbols bound eagerly.

I found this really interesting, and I am surprised how things got so
suboptimal.  Has it always been this way?  Is it the use of C++ that is
causing this by default?

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.




pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: Feature Proposal: Connection Pool Optimization - Change the Connection User
Next
From: Andres Freund
Date:
Subject: Re: Reduce function call costs on ELF platforms