I'm working with a development platform (monotouch) that does not allow me to link 3rd party libraries that are compiled for Thumb due to a bug in the apple linker. How can I determine if a library was compiled for thumb or not?
我正在使用开发平台(monotouch),由于苹果链接器中的错误,我不允许链接为Thumb编译的第三方库。如何确定是否为拇指编译库?
Thanks!
1 个解决方案
#1
6
Run otool -tv <LIBRARY>
on it and look for 2 byte instructions.
在其上运行otool -tv
Here is an example showing thumb code: http://pastebin.com/4Kq52f9D Here is an example showing NON-thumb code: http://pastebin.com/137GJDR1
以下是显示拇指代码的示例:http://pastebin.com/4Kq52f9D以下是显示NON-thumb代码的示例:http://pastebin.com/137GJDR1
#1
6
Run otool -tv <LIBRARY>
on it and look for 2 byte instructions.
在其上运行otool -tv
Here is an example showing thumb code: http://pastebin.com/4Kq52f9D Here is an example showing NON-thumb code: http://pastebin.com/137GJDR1
以下是显示拇指代码的示例:http://pastebin.com/4Kq52f9D以下是显示NON-thumb代码的示例:http://pastebin.com/137GJDR1