# Making RUNPATH redundant for Nix

**URL:** https://discourse.nixos.org/t/making-runpath-redundant-for-nix/21631
**Category:** Links
**Created:** [September 12, 2022, 6:35pm UTC](https://discourse.nixos.org/t/making-runpath-redundant-for-nix/21631 "2022-09-12T18:35:38Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [November 22, 2022, 5:07pm UTC](https://discourse.nixos.org/t/making-runpath-redundant-for-nix/21631/12 "2022-11-22T17:07:29Z")

</div>

1. Introspection and debugging. The current ELF format is incredibly terse and challenging to make changes.  
I imagine for instance, a much simpler way to make edits to symbol resolution that would maintain provenance and do away with LD\_PRELOAD for systems such as Nix.

2. Yes! Spack just merged this into their upstream for support for all binaries.

3. There is also support for $ORIGIN that we should use rather than absolute paths from /nix/store  
using $ORIGIN and relative paths make all executables relocatable anywhere on the filesystem as long as the store tree moves with it.  
I believe it would also allow re-use of binaries across different store installations.

---

_[View the full topic](https://discourse.nixos.org/t/making-runpath-redundant-for-nix/21631)._
