Hacker GitHub

← All repos

NixOS/patchelf

View on GitHub ↗ ★ 4,280 C

A small utility to modify the dynamic linker and RPATH of ELF executables

13 mentions on Hacker News by 13 people: 1 story, 12 comments · first 2015-08-05 · latest 2025-12-31

Mentions per year 13 mentions · busiest year 2021 (6)
20082026
  1. Ah you can use https://github.com/NixOS/patchelf/pull/564 So you can do e.g. `patchelf --remove-needed-version libm.so.6 GLIBC_2.29 ./mybinary` instead of replacing glibc wholesale (step 2 and 3) and assuming all of used glibc by the…
    comment by btdmaster · 2025-12-31 · in Loss32: Let's Build a Win32/Linux
  2. OP would probably have a field day with NixOS's patchelf tool: https://github.com/NixOS/patchelf
    comment by photios · 2025-12-21 · in ELF Crimes: Program Interpreter Fun
  3. I mean, we don't have to hack the elf loader if we just rewrite every elf binary using patchelf: https://github.com/NixOS/patchelf The parent commenter is already suggesting "just run a regex", so it seems like a trivial extension to their…
    comment by TheDong · 2023-05-18 · in Debian pauses /usr merge file moves
  4. …and binaries. It's also the recommended way for NixOS users to modify binaries to work properly. https://github.com/NixOS/patchelf
    comment by slabity · 2022-03-15 · in Rpath, or why lld doesn’t work on NixOS
  5. …approach to userspace ABI compatibility it isn't necessarily that easy for developers either. [0] https://github.com/NixOS/patchelf
    comment by AnIdiotOnTheNet · 2021-12-23 · in PortableApps.com Hits 1 Billion App Downloads
  6. Yes, exactly: https://github.com/NixOS/patchelf It's a key part of how nix works.
    comment by dnr · 2021-06-02 · in NixOS 21.05
  7. …binary would corrupt it. And now patchelf doesn't work on all binaries, there's a bugfix merged https://github.com/NixOS/patchelf/pull/230 merged Nov 19, 2020, but no release since then. Also patchelf exposed a bug in ldconfig noted 11…
  8. ▲ 152
    PatchELF: Simple utility for modifying existing ELF executables and libraries
    story by ingve · 2021-05-07 · 40 comments
  9. …to relink proprietary things on our cluster in order to patch a security vulnerability or two. [0] https://github.com/NixOS/patchelf
  10. …derivations for projects that need reproducibility. And I think I find my perfect balance. [^1]: https://github.com/NixOS/patchelf [^2]: https://nixos.wiki/wiki/JACK
    comment by crvdgc · 2021-01-11 · in NixOS Linux
  11. …into it, and I think it should be rare since linux ABI supposed to not break compatibility. [1] https://github.com/NixOS/patchelf
    comment by takeda · 2020-05-21 · in What Is Nix?
  12. If you ever need to tweak or inspect an existing binary, https://github.com/NixOS/patchelf is great.
    comment by zimbatm · 2019-05-16 · in ELF files on Linux
  13. …and compile it within the closure you expect to deploy on to make any headway). Ya'll can pretend https://github.com/NixOS/patchelf doesn't exist because these problems are incredibly irritating, I guess.
    comment by KirinDave · 2015-08-05 · in Developing V8 with Guix