[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.
- [Bug ld/27203] New: ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO, i at maskray dot me, 2021/01/18
- [Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO, i at maskray dot me, 2021/01/18
- [Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO, amodra at gmail dot com, 2021/01/18
- [Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO, amodra at gmail dot com, 2021/01/18
- [Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO,
amodra at gmail dot com <=
- [Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO, cvs-commit at gcc dot gnu.org, 2021/01/18
- [Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO, cvs-commit at gcc dot gnu.org, 2021/01/18
- [Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO, hjl.tools at gmail dot com, 2021/01/19
- [Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO, amodra at gmail dot com, 2021/01/19