This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Fix alignment on subsections
ClosedPublic

Authored by thakis on May 9 2021, 3:41 PM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rG7f673fcaa9a2: [lld/mac] Fix alignment on subsections
Summary

On a section with alignment of 16, subsections aligned to 16-byte
boundaries should keep their 16-byte alignment.

Fixes PR50274. (The same bug could have happened with -order_file
previously.)

Diff Detail

Event Timeline

thakis created this revision.May 9 2021, 3:41 PM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.May 9 2021, 3:41 PM

(Doesn't affect our output for the example in https://reviews.llvm.org/D79926#2043025 fwiw.)

int3 accepted this revision.May 9 2021, 4:56 PM

Nice catch!

lld/test/MachO/weak-definition-gc.s
66

nit: the "....3333""""...." doesn't seem very useful to include

This revision is now accepted and ready to land.May 9 2021, 4:56 PM
This revision was automatically updated to reflect the committed changes.
thakis marked an inline comment as done.
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2021, 6:02 PM