Open kellycampbell opened 5 years ago
Any way for me to reproduce this? Any chance you could post a binary where this is happening?
Sorry, it's from a proprietary smart lock sdk that I'm not able to post. I could run a debug version of bloaty against it and post output though if that would help?
I can reproduce this as well - looks like an issue with fat / multi-architecture libraries.
Worked around by running lipo -thin arm64
to produce a single-architecture library, then running bloaty on the result.
Hmm, Bloaty has code to support fat Mach-O files. I thought I had tested it, but maybe it's broken.
I have my hands full at the moment, but I'd be happy to take contributions from anyone who wants to do a little debugging of the code: https://github.com/google/bloaty/blob/master/src/macho.cc#L201-L236
Bloaty gives a
Corrupt Mach-O file
error on a file.lipo -detailed_info
gives this output:The hexdump of the first part of the file is this: