diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-04-06 01:10:33 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-04-06 01:10:33 +0000 |
commit | 6e2675ae0f30638261081ddb78a9fcde5902ea79 (patch) | |
tree | dc541a55d7722ee995a4cf5c0cdec80d07a877b8 /lld/ELF/InputSection.cpp | |
parent | 1fd4fbb68033226bef2647c13325ba1a67e2850c (diff) |
Don't ignore addend when a SHF_MERGE section is dead.
This is similar to r329219, but for the entire section. Like r329219 I
don't expect this to have any real impact, it is just more consistent
and simpler.
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r-- | lld/ELF/InputSection.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 5bfd4483c9f..5fa1a01d277 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -970,9 +970,6 @@ SectionPiece *MergeInputSection::getSectionPiece(uint64_t Offset) { // Because contents of a mergeable section is not contiguous in output, // it is not just an addition to a base output offset. uint64_t MergeInputSection::getOffset(uint64_t Offset) const { - if (!Live) - return 0; - // Find a string starting at a given offset. auto It = OffsetMap.find(Offset); if (It != OffsetMap.end()) |