On Solaris 10 x86, the x86-64 ld.so.1 has a section named
.SUNW_syminfo of type SHT_SUNW_syminfo.
However, in bfd/elf64-x86-64.c:elf64_x86_64_section_from_shdr, the
following logic
if (hdr->sh_type != SHT_X86_64_UNWIND)
return FALSE;
rejects any section with a type that is not SHT_X86_64_UNWIND.
This makes it impossible for gdb on Solaris 10 x86 to load ld.so.1 for
a 64 bit target, and this stops the debugging session. Commenting out
the code above produces a gdb that appears to load .SUNW_syminfo
correctly and lets debugging proceed.
Should this restriction on allowed section types be relaxed or removed?