Menu

#611 add support for DWARF5

RELEASE_1_0
new
nobody
None
libdwarf
major
task
2023-09-25
2022-08-22
Ryan Long
No

gcc 11.0+ DWARF5 constructs by default, yet elftoolchain's libdwarf does not support them.

In libdwarfinfo.c's dwarfinfoload() only versions 2 through 4 are supported.

Discussion

  • Abhinav Anil Sharma

    The DynamoRIO (dynamorio.org) drsym extension uses libelftc. drsym users, particularly the drcov code coverage tool, are seeing fatal errors on DWARFv5, which is probably because of this missing support: DynamoRIO/dynamorio#5926.

    Is there an ETA for supporting DWARFv5?

     
  • Kai Wang

    Kai Wang - 2023-04-20

    I'll work on DWARF5.

     
  • Derek Bruening

    Derek Bruening - 2023-09-25

    Dr. Memory (drmemory.org) also uses libelftc and it is now failing to get line number information for apps built with gcc 11+ unless the user explicitly passes -gdwarf-4: https://github.com/DynamoRIO/drmemory/issues/2485

    Is this support expected to be added soon?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.