This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]