gdb/2172, Solaris x86-64 ld.so.1, and .SUNW_syminfo

Andrew Morrow andrew.c.morrow@gmail.com
Thu Jan 11 21:18:00 GMT 2007


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?

Thanks,
Andrew



More information about the Binutils mailing list