bfd enforces a specific value of sh_info on SHT_GNU_verneed

Thomas Röthenbacher thomas@43t.de
Fri May 13 19:17:32 GMT 2022


Hello,

as stated in the subect, bfd (and therefore `objdump -d`) seems to fail
in _bfd_elf_slurp_version_tables if the value of sh_info for a
".gnu.version_r" section (SHT_GNU_verdef) is zero.
I couldn't however find a specification to justify this behaviour or
anything specifying the sh_info field of this section type at all.
The only reference I could find, was in the SUN "Linker and Libraries
Guide", where they defined the sh_info value for their section type
SHT_SUNW_verdef. But does this standard apply here?

I'm asking, because a program I work with generates binaries that
violate this constraint, but can't really justify why it should NOT
just have a sh_info of zero in this section.


Thanks in advance for your replies,
Thomas



More information about the Binutils mailing list