[PATCH 2/7] x86: handle a local IFUNC referenced only from a non-alloc section
Jan Beulich
jbeulich@suse.com
Fri Nov 13 13:29:24 GMT 2026
On 13.11.2026 14:21, Harshit Kumar wrote:
>> But a GNU one at least, i.e. ...
>> ... I'm not sure these tests should work as expected there. (IOW if they
>> do, this may point at another problem.)
>
> As far as I can tell x86_64-elf is one. Its vectors, x86_64_elf64_vec
> and i386_elf32_vec, have ELF_OSABI ELFOSABI_GNU (FreeBSD and Solaris
> have their own), and the linked output is marked OS/ABI GNU.
> supports_gnu_osabi in binutils-common.exp is true for *-*-elf*, so
> ld-ifunc/ifunc.exp runs there as well (98 passes on master), and
> i386.exp already runs IFUNC tests such as pr20253-5 and pr22929 ahead
> of the return.
Likely there is a (perhaps historical) reason for this, but it feels
wrong to me. Plain ELF targets should imo be ELFOSABI_NONE.
Jan
More information about the Binutils
mailing list