libtree
patchelf
libtree | patchelf | |
---|---|---|
7 | 12 | |
1,812 | 3,270 | |
- | 2.9% | |
0.0 | 3.6 | |
over 1 year ago | about 1 month ago | |
C | C | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
libtree
- Libtree: Ldd as a Tree
-
Rpath, or why lld doesn’t work on NixOS
Depends on your libc.
Search order:
glibc: rpath > LD_LIBRARY_PATH > runpath > ld.so.cache > default paths.
musl: LD_LIBRARY_PATH > rpath=runpath > default paths.
Search path inheritance:
glibc: rpaths are inherited: When exe depends on libx depends on liby, then liby first considers its own rpaths, then libx's rpaths, then exe's rpaths. HOWEVER if liby specifies runpath, it will not consider rpaths from parents.
musl: rpaths and runpaths are the same and always inherited.
I verified the glibc/musl sources when writing https://github.com/haampie/libtree
-
Hacker News top posts: Dec 4, 2021
Libtree: Turns ldd into a tree; explains why shared libraries are found or not\ (42 comments)
- Libtree: Turns ldd into a tree; explains why shared libraries are found or not
- Libtree: Debug Shared Library Loading
patchelf
-
Debian pauses /usr merge file moves
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 simple solution to "just run patchelf on every binary on your system"
-
How does Nix make sure binaries can access their runtime dependencies?
Patching paths in text files typically used substituteInPlace (including in cowsay). For dynamic libraries, patchelf is typically used.
-
"Discord installation is corrupt" on Ubuntu Linux.
Install patchelf.
-
Invalid or corrupted package (PGP signature)
Thank you! I followed the instruction here, but it looks like I didn't actually install it, because my pacman -Q patchelf did not find anything. Maybe I was missing a dependency. Also, it was late so I didn't pay attention to warnings at the time.
-
Rpath, or why lld doesn’t work on NixOS
How does an article on NixOS talk about the `rpath` issue without also mentioning the `patchelf` utility that NixOS developers created to solve this issue? It's a small tool that lets you modify ELF executables and binaries. It's also the recommended way for NixOS users to modify binaries to work properly.
https://github.com/NixOS/patchelf
-
cxfreeze error when compiling py to exe
So install it? https://github.com/NixOS/patchelf
- PatchELF: Simple utility for modifying existing ELF executables and libraries
-
Scala project (FIRRTL) failing to build on NixOS
NixOS doesn't have stable paths to shared libraries like macOS or other linux distributions (and this is the core feature) and always need to patch elf for current paths ( https://github.com/NixOS/patchelf ).
What are some alternatives?
lddtree - Fork of pax-utils' lddtree.sh
nixops - NixOps is a tool for deploying to NixOS machines in a network or cloud.
macdependency - MacDependency shows all dependent libraries and frameworks of a given executable, dynamic library or framework on Mac OS X
vscode-remote-release - Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
awesome-hacker-news - Awesome Hacker News: a collection of awesome Hacker News apps, libraries, resources and shiny things.
lorri - Your project's nix-env
deeplabel - A cross-platform desktop image annotation tool for machine learning
serverless-application-model - The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates.
FirefoxPWA - A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox [Moved to: https://github.com/filips123/PWAsForFirefox]
nixpkgs - Nix Packages collection & NixOS
libtree-in-c - wip libtree in C
libelfin - C++11 ELF/DWARF parser