Previously, we weren't updating isecAddr when aligning InputSections,
resulting in truncated sections under the right conditions.
Details
Details
- Reviewers
compnerd smeenai - Group Reviewers
Restricted Project - Commits
- rG525c7d8cda72: [lld-macho] Handle alignment correctly when merging InputSections
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/test/MachO/section-merge.s | ||
---|---|---|
16 | Where is ADDR captured? I can't seem to spot it. |
lld/test/MachO/section-merge.s | ||
---|---|---|
16 | it's captured on line 13 |
Comment Actions
Ah, somehow I inverted the application and read it as a check rather than capture, thanks!
Comment Actions
The fix and test for it look good, but the previous test was also checking that section contents were being merged correctly, which is being dropped. Could you add that back?
Comment Actions
@smeenai Oh yeah good point. I've added some nonzero data to the data section, so it can double up as a check for the correctness of the contents too. Just wanted to make the test as compact as possible
Where is ADDR captured? I can't seem to spot it.