This is an archive of the discontinued LLVM Phabricator instance.

[LLD][ELF] - Improve the DWARF v5 suport for building .gdb_index.
ClosedPublic

Authored by grimar on Nov 30 2018, 2:09 AM.

Details

Summary

Now LLD might build the broken/incomplete .gdb_index when some DWARF v5
sections (like .debug_rnglists and .debug_addr) are used.

Particularly, for the case above, we emit an empty address area.
A test case is provided and patch fixes the issue.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Nov 30 2018, 2:09 AM
ruiu accepted this revision.Nov 30 2018, 9:13 AM

LGTM

This revision is now accepted and ready to land.Nov 30 2018, 9:13 AM
This revision was automatically updated to reflect the committed changes.