Add support for relocations for MachO to ObjectYAML / yaml2obj / obj2yaml.
Test plan: make check-all
alexshap on Apr 9 2020, 6:03 PM.Authored by
just in case: the failed pre-merge check is complaining on naming of some fields (that is consistent with the "local" style / existing macho-specific structs, but violates the usual naming guidelines)
The Mach-O bits look good to me. I'd be happy if someone more familiar with the YAML bits could take a look at those as well, but they seem straightforward enough.
I know nothing about MachO, few suggestions about the code are below.
The change about ObjectYAML/obj2yaml looks generally fine, so LGTM.
I've put the last nit inline. It is probably up to you to decide keep it or to change,