Comment Comment by nextaccountic I was confused on what $ORIGIN means, so, macroexpanding the article a bithttps://fzakaria.com/2026/06/21/nix-needs-relocatable-binari...> The loader in Linux however natively supports the variable $ORIGIN which translates to “the directory containing the executable.”https://man7.org/linux/man-pages/man8/ld.so.8.htmlBut, if ld.so supports $ORIGIN already, why does the kernel needs to support it also? Or rather, why can't the kernel leverage ld.so and do this entirely on userspace? parent nextaccountic 3 months ago
https://fzakaria.com/2026/06/21/nix-needs-relocatable-binari...
> The loader in Linux however natively supports the variable $ORIGIN which translates to “the directory containing the executable.”
https://man7.org/linux/man-pages/man8/ld.so.8.html
But, if ld.so supports $ORIGIN already, why does the kernel needs to support it also? Or rather, why can't the kernel leverage ld.so and do this entirely on userspace?