This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Ensure that chained fixups data comes first in __LINKEDIT
ClosedPublic

Authored by BertalanD on Nov 5 2022, 8:41 AM.

Details

Summary

libstuff-based tools (e.g. codesign and strip) require __chainfixups
to be the first section in __LINKEDIT, and print a "file not in an
order that can be processed" error message if that is not the case.

Diff Detail

Event Timeline

BertalanD created this revision.Nov 5 2022, 8:41 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 5 2022, 8:41 AM
BertalanD requested review of this revision.Nov 5 2022, 8:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 5 2022, 8:41 AM
lgrey accepted this revision.Nov 7 2022, 6:12 AM

Patched it in and strip looks happy. Thanks!

This revision is now accepted and ready to land.Nov 7 2022, 6:12 AM
int3 accepted this revision.Nov 7 2022, 9:32 AM
int3 added a subscriber: int3.

Thanks!