This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gdb/2172, Solaris x86-64 ld.so.1, and .SUNW_syminfo
- From: "Andrew Morrow" <andrew dot c dot morrow at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 11 Jan 2007 16:18:15 -0500
- Subject: gdb/2172, Solaris x86-64 ld.so.1, and .SUNW_syminfo
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