简体   繁体   中英

How to get UUID for apple binaries on Linux

I am trying to figure out how to get the UUID for a apple executable file while on Linux (EC2).

When on Mac, I can use the following line to get the UUID:

xcrun dwarfdump --uuid

I learned that there is a version of dwarfdump on Linux, so I used the following command to install it:

sudo yum install libdwarf-tools

However when I run the utility and look at the help screen there is no "-u" or "-uuid" command, and trying to run them does't do anything (there is no error message). The commands available look like it is a different tool that what I am looking for. I tried some of the arguments like "-a" and "-b" against the same file which worked on Mac, but I never get any output.

Does anyone know where I can get the version of dwarfdump that supports UUID for Linux? Or any other easy way to get the UUID from a file? I know it's in the binary file somewhere but I don't want to have to write an entire command parser just for this.

I talked to the developer of this tool and the problem is that MachO is not currently supported.

So it looks like the only way to do this would be to write a tool from scratch to do it, or to modify an existing tool. I think ATOSL might be able to be used for this purpose.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM