[PATCH] Allow direct access relocations referencing a protected function symbol

Alan Modra amodra@gmail.com
Tue Jun 15 02:46:23 GMT 2021


On Mon, Jun 14, 2021 at 10:43:36AM -0700, Fangrui Song wrote:
> I shall add a note that this patch will restore the behavior before late
> 2015 or early 2016.

Also add a note that the patch you posted is incorrect.

BTW, I think it was earlier than 2015 that HJ made access to protected
symbols in shared libraries slower in order to make access from the
executable faster.  You are way too late to try to reverse that
change in GNU ld and gcc.  (I was too late too.  By the time I raised
objections HJ had code in gcc and binutils, and it seems no one on the
gcc side cared about the fact that protected symbols in shared
libraries were made virtually useless from an optimisation perspective
on x86 and other architectures like arm that followed x86.)

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list