radare / valabind

create bindings from vapi to nodejs, python, swig, c++
GNU General Public License v3.0
56 stars 27 forks source link

Fix `getvv` on MacOS X Lion #24

Closed dholm closed 10 years ago

dholm commented 10 years ago

When passing an executable file as an argument to strings it will attempt to parse its headers in order to only look for strings in the "appropriate" sections. As I don't have direct access to a Lion machine I have not been able to perform a deep analysis but it appears that on Lion the "current" version of XCode produces Mach-O headers that are incompatible with Lion's "current" version of strings. By cat:ing the binary and filtering it through strings the header parsing is bypassed and all goes well.

Without this patch the following error message is produced:

strings: object: /usr/local/opt/vala/bin/valac malformed object (unknown load command 17)