public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [BUG Report] objdump on mingw64 does not display debug_rnglists properly
@ 2021-11-28 23:34 Neeraj Singh
  2021-11-30 13:21 ` Nick Clifton
  2021-11-30 13:36 ` Johannes Schindelin
  0 siblings, 2 replies; 5+ messages in thread
From: Neeraj Singh @ 2021-11-28 23:34 UTC (permalink / raw)
  To: binutils; +Cc: Johannes Schindelin

Hi binutils community,
I'm attempting to use objdump against a git.exe built by the mingw64
toolset using gcc-11.2. The git executable is shared at
https://drive.google.com/file/d/1dp85IqRX8n5ieoB6rLUvOd0Mbo4_AfoV/view?usp=sharing.

There's one minor problem that I was able to address:
binutils\dwarf.c:display_debug_ranges and
display_debug_rnglists_list/display_debug_ranges_list should be using
dwarf_vma for base_address rather than unsigned long. The size of
these two types differ on LLP64 platforms, like mingw64.

There's another problem that I didn't understand: in
display_debug_ranges we use the .debug_rnglists header to compute
"initial_length" and set "finish" to "start+initial_length".  That
logic doesn't seem right for an executable which has a .debug_rnglists
containing ranges from multiple compile units. I'm not sure how this
works correctly on ELF platforms (thought it seems like it does).  I
think the right fix is to just leave "finish" set to the end of the
section rather than using the value from the debug_rnglists header.

Thanks,
Neeraj Singh
Windows Core Filesystems.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-30 19:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-28 23:34 [BUG Report] objdump on mingw64 does not display debug_rnglists properly Neeraj Singh
2021-11-30 13:21 ` Nick Clifton
2021-11-30 13:36 ` Johannes Schindelin
2021-11-30 17:39   ` Nick Clifton
2021-11-30 19:21     ` Neeraj Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).