Re: Reduce function call costs on ELF platforms

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Reduce function call costs on ELF platforms
Date: 2021-11-23 01:13:28
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: 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(at)momjian(dot)us>

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

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2021-11-23 01:18:01 Re: Reduce function call costs on ELF platforms
Previous Message Jacob Champion 2021-11-23 01:12:14 Re: Feature Proposal: Connection Pool Optimization - Change the Connection User