This is an archive of the discontinued LLVM Phabricator instance.

objdump: Support newer ObjC image info flags
ClosedPublic

Authored by kastiglione on Jun 25 2018, 2:11 PM.

Details

Summary

Add support for two additional ObjC image info flags: IS_SIMULATED and
HAS_CATEGORY_CLASS_PROPERTIES.

IS_SIMULATED indicates a Mach-O binary built for iOS simulator.

HAS_CATEGORY_CLASS_PROPERTIES indicates a Mach-O binary built by a compiler
that supports class properties in categories.

Diff Detail

Repository
rL LLVM

Event Timeline

kastiglione created this revision.Jun 25 2018, 2:11 PM
keith added a subscriber: keith.Jun 25 2018, 2:18 PM

Nice! I like the changes to the objdump, but, would it be possible to roundtrip the object files being added through obj2yaml and yaml2obj rather than checking in binaries?

Yep for sure. I will update the tests.

@compnerd The mach-o flavor of yaml2obj doesn't support section contents. In light of that, what do you think?

kastiglione planned changes to this revision.Jun 29 2018, 11:50 AM

For tests, instead of yaml2obj, I'll generate object files via llvm-mc.

test without binaries

compnerd accepted this revision.Jul 5 2018, 3:16 PM
This revision is now accepted and ready to land.Jul 5 2018, 3:16 PM
This revision was automatically updated to reflect the committed changes.