-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
machocopy
example
#613
Comments
There isn't a way to write MachO executables yet, so there's no |
Thanks for the hint! Do you think there is a shortcut if all we want is to rewrite an rpath in the MachO file? We're happy to contribute. Also if you can give me any hints on how to start this endeavor, that would be cool. |
If I understand correctly, rewriting the rpath is conceptually simple: you just want to change the string in the load command for
I would start by implementing something that treats all of the load commands as opaque blocks, and then progressively add support for the load commands that need further parsing. |
Hi, we're trying to reimplement
patchelf
andinstall_name_tool
with object and at least forpatchelf
it seems quite straightforward with theelfcopy
example :)For
install_name_tool
I seem to miss a way to addload_commands
to the writer. Reading the MachO file works well (we're mostly interested in patching / changing therpath
to something relative), and I can read therpath
nicely.I was wondering if you have a quick tip on how to achieve this.
The text was updated successfully, but these errors were encountered: