4 ms·
If there was a standard for specifying which static library a binary has linked, this would be a non-issue.
by nicoburns 4y ago
If there was a standard for specifying which static library a binary has linked, this would be a non-issue.
- arinlen 4y ago> If there was a standard for specifying which static library a binary has linked, this would be a non-issue. You just gave a non-sequitur answer that rings as rational and true as stating that if the Pope would fly he would be an Airbus A330. Limiting which static library you can link to means absolutely nothing to the problems created by static linking, and how shared libraries solve all of them without any meaningful tradeoff at all.
- CuriousCosmic 4y agoIn a sense there kinda is. Pre-linking is a way to statically specify the lookup for a given shared library in an ELF executable. It's still kinda dynamic linking because the file is loaded at runtime but there's no library lookup, it's just "load this file at this path into address space while we load the rest of the main executable". Before PIC there would have been a bit more of a distinction but nowadays static and dynamic libraries are really only distinguished by where the symbols are (unless you want to be able to dynamically load and unload after startup).
- deleted 4y ago[deleted]