[PATCH 0/7] bfd: local IFUNC symbols referenced only from non-alloc sections
Alan Modra
amodra@gmail.com
Fri Nov 13 12:15:37 GMT 2026
On Wed, Nov 11, 2026 at 04:33:43PM +0530, Harshit Kumar wrote:
> The scan skips these sections on purpose since c4b126b87a (PR ld/26080),
> so creating the entry or scanning them again is not the fix. For a
> global symbol, x86 treats the symbol as STT_FUNC in a non-alloc SHT_NOTE
> section (347a87745e, PR ld/22929) and leaves the relocation unapplied in
> a debugging section, which ld.so never processes (97dc35c88d and
> 0eace2105d, PR ld/18808); AArch64, RISC-V and SPARC do the same. The
> series applies that rule to the local symbol:
I have some doubt that x86 and the others that have followed x86 are
correct regarding not applying relocs in debug sections. Debug
sections certainly should not generate dynamic relocations, but why
would you not apply the reloc to the debug section?
--
Alan Modra
More information about the Binutils
mailing list