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

Nick Clifton nickc@redhat.com
Fri Jan 19 15:18:00 GMT 2007


Hi Andrew,

> 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?

It sounds like it should be relaxed.  Presumably so that 
SHT_SUNW_syminfo sections can also be handled.

Cheers
   Nick




More information about the Binutils mailing list