This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho][test] Add test case for section ordering
ClosedPublic

Authored by keith on Dec 13 2022, 11:01 AM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rG2e5a0b3d835b: [lld-macho][test] Add test case for section ordering
Summary

This covers the special section ordering handling. This chooses to fake the sections vs creating them organically which is probably a bit easier to maintain.

Diff Detail

Event Timeline

keith created this revision.Dec 13 2022, 11:01 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 13 2022, 11:01 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
keith requested review of this revision.Dec 13 2022, 11:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 13 2022, 11:01 AM
int3 accepted this revision.Dec 13 2022, 11:58 AM
int3 added a subscriber: int3.

This chooses to fake the sections vs creating them organically which is probably a bit easier to maintain.

Neat idea :D

lld/test/MachO/section-order.s
8

12 and 21 were so named to reflect the order of the input object files, so 22 doesn't exactly make sense here. Maybe name this synth-section-order instead?

This revision is now accepted and ready to land.Dec 13 2022, 11:58 AM
keith updated this revision to Diff 482618.Dec 13 2022, 1:26 PM
keith marked an inline comment as done.

Improve test naming

This revision was automatically updated to reflect the committed changes.