2 ms·
Dynamic libraries are not linked at all, so the linker can't do that. The linker just records what shared objects the loader needs to find when the linked artif
by duped 5y ago
Dynamic libraries are not linked at all, so the linker can't do that. The linker just records what shared objects the loader needs to find when the linked artifact itself is loaded, the path to those objects is therefore the responsibility of the loader to resolve and report.
On Linux you can find the shared libraries of a running process in /proc/<PID>/maps, or what libraries will be loaded when the executable runs/shared object is run in the current shell with ldd.