You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was on a retreat with Guix people, I learned they are actually not using patchelf in their standard builder, because their linker wrapper is smart enough to construct the rpath during linking correctly in the first place. We should do the same as it will greatly help with patchelf maintenance. Moving patchelf out of stdenv means, that regression testing will become a lot easier because of scope reduction.
We could also potentially rewrite patchelf in a memory-safe language that is easier to work with.
Currently patchelf does a lot of scary pointer arithmetic.
Reacted by Arne Keller, Jo, Leah Amelia Chen, GameDungeon, Noah Biewesch, Ethan Carter Edwards and Aleksi
Activity
Patryk27 commentedon Dec 6, 2024
There are also projects which implement logic similar to patchelf's, e.g. I know of https://github.com/lief-project/LIEF (it's able to do the section extension, reshuffling etc. things) - might be worth to try using them.