This repository was archived by the owner on Mar 28, 2020. It is now read-only.
Relax DIE verification #120
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This relaxes the DWARF verifier for object files. In particular, this is important for ELF where COMDATs are created by means of function sections. Each section is independent and the
DW_AT_low_pc
is a section relative address. The linker will coalesce the sections into the text segment and then update the debug info. The current approach of verifying the contents of DW_AT_ranges of the CU does not work as a result as the overlapping address is totally valid. The bug was uncovered while trying to fix the IRGen for swift on ELF and COFF targets. Without this change, in order to fix a size regression and a complete failure for building code for Windows targets, we would need to disable tests that verify the generated debug information on object files which would open the door for introducing debug information QoI regressions.CC: @adrian-prantl @JDevlieghere @bob-wilson @tkremenek