[BUG Report] objdump on mingw64 does not display debug_rnglists properly
Johannes Schindelin
Johannes.Schindelin@gmx.de
Tue Nov 30 13:36:14 GMT 2021
Hi Neeraj,
I believe that the binutils team prefers bug reports via
https://sourceware.org/bugzilla/, as per
https://www.gnu.org/software/binutils/.
Would you mind opening a ticket there?
Thank you,
Dscho
On Sun, 28 Nov 2021, Neeraj Singh wrote:
> 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.
>
More information about the Binutils
mailing list