This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Add testcase testing .gdb_index generation when base address of CU is used.
ClosedPublic

Authored by grimar on Aug 30 2017, 7:50 AM.

Details

Summary

Currently lib/DebugInfo incorrectly handles the case when debug ranges
uses base address of CU. Section index is not calulcated properly and
LLD crashes on provided testcase.

D36097 and D37214 were posted to address the issue.
I tested this testcase with D37214.

Posting it for review, so we will be able to commit it when issue be fixed.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Aug 30 2017, 7:50 AM
ruiu accepted this revision.Aug 30 2017, 8:33 AM

LGTM

This revision is now accepted and ready to land.Aug 30 2017, 8:33 AM
This revision was automatically updated to reflect the committed changes.