Is there a utility that can take ALL the SO's that an Elf needs turn them into static then converts the Elf to be SO's free?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
- Null-terminated string, opening file for reading
Here are some projects you might find useful:
NOTE: I've not used either application myself.
You can link with -static at compile time. Are you looking to do this post-compile?
Statifier is an option. Another option is Ermine. While Ermine is commercial it behaves better than statifier on systems with memory randomization.
Probably not, though in theory, no doubt, it could be done.
One aspect to be aware of - the typical program will not be using all the code from a given SO, so blindly including all the material in each SO would give you a grotesquely bloated executable. A classic static link only includes that which is needed.
Another aspect to be aware of would be C++ template instantiation. I assume that these would mainly appear in the executable already (not as part of an SO).
I've used Statifier as mentioned by codelogic.
It worked well for several Linux commands like ethtool.