This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Put DATA_IN_CODE immediately after FUNCTION_STARTS
ClosedPublic

Authored by int3 on Jun 15 2021, 10:11 PM.

Details

Summary

codesign checks for this.

Diff Detail

Event Timeline

int3 created this revision.Jun 15 2021, 10:11 PM
Herald added a project: Restricted Project. · View Herald Transcript
int3 requested review of this revision.Jun 15 2021, 10:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2021, 10:11 PM
thakis accepted this revision.Jun 16 2021, 10:38 AM
This revision is now accepted and ready to land.Jun 16 2021, 10:38 AM

FYI, strip needs this too. Without this change, the data-in-code change regressed stripping again, with this error:

% strip out/gn/bin/lld
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: fatal error: file not in an order that can be processed (data in code info out of place): /Users/thakis/src/llvm-project/out/gn/bin/lld