bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/23389] Have objdump and addr2line retrieve symbols from se


From: nickc at redhat dot com
Subject: [Bug binutils/23389] Have objdump and addr2line retrieve symbols from separate debuginfo files
Date: Mon, 09 Jul 2018 15:59:54 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23389

--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
(In reply to H.J. Lu from comment #1)
> How are separate debuginfo files are encoded in the executable?

Ah - there are three different ways....

  1. In a .gnu.debuglink section

  2. In a .gnu.altdebuglink section

and

  3. Via the DW_AT_GNU_dwo_name, DW_AT_dwo_name, DW_AT_GNU_dwo_id
     and DW_AT_comp_dir DWARF attributes.

There is code in binutils/dwarf.c that handles all three, plus
some support in bfd/opncls.c as well.

Then there is the problem of locating these files, even given
the information from these places.  There are lots of places
to look and different execution environments can provide
different, extra, locations as well.  A bit of nightmare really.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]