[lld-macho] Handle alignment correctly when merging InputSections
authorJez Ng <jezng@fb.com>
Sun, 14 Jun 2020 03:06:29 +0000 (20:06 -0700)
committerJez Ng <jezng@fb.com>
Thu, 18 Jun 2020 03:41:28 +0000 (20:41 -0700)
commit525c7d8cda72c00c85de4989bcddefd4fb9a14a1
treecb932a66815e1780b9a4fa96bf1cd728b2830717
parent74871cdad729aa5a5f39804214e5872f8e418d8e
[lld-macho] Handle alignment correctly when merging InputSections

Summary:
Previously, we weren't updating isecAddr when aligning InputSections,
resulting in truncated sections under the right conditions.

Reviewers: #lld-macho, compnerd

Reviewed By: #lld-macho, compnerd

Subscribers: smeenai, compnerd, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81298
lld/MachO/MergedOutputSection.cpp
lld/test/MachO/section-merge.s