-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
Changing rpath causes Exec format error on FreeBSD #36
Comments
I tried changing "elf.h" to sys/elf.h, but same issue happens. There's no way to set back rpath which is longer than current one.
|
I also tried to patch unstripped binary. Still shows |
After patch (shorter rpath). Readelf info:
So the RPATH was correctly set back to /Software/Tig/lib .. so that worked. Interesting.. |
What's even more interesting.. If I also set interpreter, tig is working:
|
Does the version from the ports work? |
I have no idea, didn't use ports. |
The same problem with 0.9 version and ports version (both tested).
|
vks01# cp
which git
/tmpvks01# ./patchelf --set-rpath /Software/Git /tmp/git
vks01# ldd /tmp/git
/tmp/git:
libz.so.1 => not found (0)
libiconv.so.3 => not found (0)
libcrypto.so.1.0.0 => not found (0)
libthr.so.3 => /lib/libthr.so.3 (0x800948000)
libc.so.7 => /lib/libc.so.7 (0x800b6b000)
vks01# ./patchelf --set-rpath /Software/Git/lib /tmp/git
vks01# ldd /tmp/git
/tmp/git:
ldd: /tmp/git: Exec format error
/tmp/git: exit status 1
The text was updated successfully, but these errors were encountered: