Comments (4)
It should be possible to run a binary directly with /nix/store/<...>/ld-linux-x86-64.so.2 /nix/store/<...>/<program>
. You might have to overwrite the LD_LIBRARY_PATH
variable too.
from patchelf.
When I run nix/store/.../ld-linux-x86-64.so.2 ./otto
, it halts immediately with no output.
from patchelf.
In case this is of any help:
> /nix/store/.../ld-linux-x86-64.so.2 --list ./otto
linux-vdso.so.1 (0x00007ffc9c7c3000)
libpthread.so.0 => /nix/store/.../libpthread.so.0 (0x00007febb77c9000)
libc.so.6 => /nix/store/.../libc.so.6 (0x00007febb7429000)
/lib64/ld-linux-x86-64.so.2 => /nix/store/.../ld-linux-x86-64.so.2 (0x00007febb79e6000)
from patchelf.
Very anecdotal, but what @darealshinji said in #68 (comment) worked for me. I ended up using a wrapper to the effect of exec $(cat $NIX_CC/nix-support/dynamic-linker) $orig $@
.
from patchelf.
Related Issues (20)
- patchelf seems to be leaving certain files corrupt HOT 1
- error building version 0.18.0 on Amazon Linux 2 HOT 6
- Using patchelf and llvm-strip in sequence corrupts ELF files HOT 1
- patchelf: cannot find section '.interp'. The input file is most likely statically linked
- Test regression in 0.18.0: repeated-updates.sh, replace-add-needed.sh HOT 5
- patchelf breaks dylibs from recent Firefox Nightly builds HOT 11
- repeated-updates.sh fails on mips64el HOT 1
- What versions support redhat6
- `patchelf --set-interpreter` and `patchelf --set-rpath` depend on the order (at least on i686-linux) HOT 3
- Allow --rename-dynamic-symbols to change the version tag.
- Regression in 0.18.0: --set-rpath creates broken header alignment HOT 3
- `patchefd --set-rpath ... nodejs` broken since ~0.17.2 (0.15.0 works) HOT 3
- when I use zsh plugins zsh-autosuggestions, it something wrong HOT 1
- Program header editing features HOT 5
- SEGV when ELF has a malformed .dynamic section
- Relocatable binaries not handled
- Patchelf 0.18.0 Build failure on s390x with "span : out of range error"
- build failed for NetBSD
- rename-dynamic-symbols produces unusable binary
- Need help for cross-compliling libc.so.6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from patchelf.