문제

I have two files on Mac OS. One Mach-O executable i386 and one data (same exec icon in my Finder).

When I execute otool -tV command on the first I have my assembler code printed. But when I write it for my second file I have this message : myFile: is not an object file.

Have an idea how to convert or directly read data files ?

도움이 되었습니까?

해결책

The error from otool is because the data file is not a Mach-O object file, which has a pre-defined format used to store code, data, symbols etc.

It's not possible (or nearly impossible) to just convert a data file into an Object file.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top