简体   繁体   English

在Java下从Mach-o二进制文件获取UUID?

[英]Getting UUID from Mach-o binary under Java?

是否有任何现有的工具或库可从Mach-o二进制加载命令头中获取UUID?

otool -l? otool -l? or did I misunderstand your question 还是我误会了你的问题

After attempting to us objdump from my Groovy process. 在尝试从我们的Groovy进程objdump转移给我们之后。

"objdump -P load ${filename}".execute()

I couldn't get this to work under our Ubuntu servers, even after I compiled binutils with arm support. 即使我在具有arm支持的情况下编译了binutils ,也无法在我们的Ubuntu服务器上使用它。

I ended up hacking together a really quick and dirty library to read Mach-o binaries. 最后,我一起破解了一个非常快速和肮脏的库来读取Mach-o二进制文件。 I'm going to avoid posting it here because it was done so quickly, but a coworker of mine took some time and wrote up what looks like a much more robust solution, https://github.com/dzog/machismo 我将避免在此处发布它,因为它是如此之快,但是我的一位同事花了一些时间写了一个看起来更健壮的解决方案, https://github.com/dzog/machismo

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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