This is an archive of the discontinued LLVM Phabricator instance.

[llvm-obcopy][MachO] Add error for MH_PRELOAD
ClosedPublic

Authored by keith on Nov 12 2021, 5:25 PM.

Diff Detail

Event Timeline

keith created this revision.Nov 12 2021, 5:25 PM
keith requested review of this revision.Nov 12 2021, 5:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 12 2021, 5:25 PM
llvm/test/tools/llvm-objcopy/MachO/Inputs/mh_preload.yaml
1 ↗(On Diff #386987)

this can be reduced to just the header, no load commands, no sections

llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
393

if I am not mistaken this should be replaced with llvm::errc::not_supported

keith updated this revision to Diff 386991.Nov 12 2021, 5:59 PM
keith marked 2 inline comments as done.

Improve test, change error code

LG, thanks for the fix!

This revision is now accepted and ready to land.Nov 12 2021, 6:01 PM
keith added a comment.Nov 12 2021, 6:01 PM

Thanks for the super quick review!

This revision was automatically updated to reflect the committed changes.