This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Do not error on unsupported CIE version
ClosedPublic

Authored by rafauler on Mar 2 2021, 8:54 PM.

Details

Summary

D81469 introduced a check to error on CIE version different
than 1 for eh_frame, but older compilers mistakenly create binaries
with this version set to 3 for DWARF4 or 4 to DWARF5. Move the check
to dump time instead of eh_frame parse time, so we can be tolerant
with older binaries.

Diff Detail

Event Timeline

rafauler created this revision.Mar 2 2021, 8:54 PM
rafauler requested review of this revision.Mar 2 2021, 8:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2021, 8:54 PM
aprantl accepted this revision.Mar 3 2021, 4:44 PM

As long as the rest of the code is hardened against errors, this is fine. It's only the dumping code.

This revision is now accepted and ready to land.Mar 3 2021, 4:44 PM
This revision was landed with ongoing or failed builds.Mar 8 2021, 7:52 PM
This revision was automatically updated to reflect the committed changes.