This commit adds definitions for the dyld_chained_import* structs.
The imports array is now printed with llvm-otool -chained_fixups. This
completes this option's implementation.
A slight difference from cctools otool is that we don't yet dump the
raw bytes of the imports entries.
When Apple's effort to upstream their chained fixups code continues,
we'll replace this code with the then-upstreamed code. But we need
something in the meantime for testing ld64.lld's chained fixups code.
It'd be nice to use bit_cast from llvm/ADT/bit.h here, which will ensure that Raw is the same size as dyld_chained_import. Here this is fairly easy I think:
Below it's a bit more tricky, but I think this might work (all untested though):
(and analogously for the 64-bit version)