bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLO


From: amodra at gmail dot com
Subject: [Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO
Date: Tue, 19 Jan 2021 00:49:16 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27203

--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
I generated a patch to change powerpc64 to use R_PPC64_IRELATIVE in this
situation, but now I'm wondering if such a change is a good idea.  IRELATIVE
relocs must be resolved at program startup whereas JMP_SLOT can be resolved
lazily.  So we'd be slowing down program startup for no benefit at all if the
function is never called, and only saving ld.so symbol resolution time if the
function is called.

I'm inclined to think this isn't a good idea.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]