Questions tagged [dynamic-loading]
The dynamic-loading tag has no summary.
29 questions
0 votes
1 answer
409 views
dlsym, when run from an LD_PRELOAD interposer, does not find any symbols from the main program
/* dlsym-main.c */ #include <stdio.h> void doSomething(char const *msg) { fprintf(stderr, "Main program is doing %s\n", msg); } void (*fnptr)(char const *) = doSomething; int ...
0 votes
1 answer
111 views
tcpdump doesn't appear to call any libpcap's exported function
Digging into tcpdump implementation, I can see that it actually loads the libpcap.so dynamic library in userspace. However, by use of strace, I can't see any occurrence of calls to any function ...
4 votes
0 answers
348 views
Is there any solution to ltrace calls made by libs opened using dlopen()?
I wrote different two different types of queues. Bundled them in different .sos. I have a driver main.c which tests functions offered by those queues. main.c makes use dlfcn.h to load, unload required ...
0 votes
0 answers
397 views
What is the best way of finding library conflicts in a large application?
I have a large application (let's call it P) with lots of dependencies to boost, Qt, zlib, libpng, etc. Recently, I have added a feature to P that needs to dynamically load a new shared object (let's ...
0 votes
2 answers
1k views
$LIB variable does not expand to anything in Ubuntu Server 18.10
I have the same exact problem as this question previously posted, where /etc/ld.so.preload does not intercept the right architecture. A little background: I have compiled a shared object (64-bit) that ...
2 votes
1 answer
2k views
what are the executable ELF files respectively for static linker, dynamic linker, loader and dynamic loader?
In Linux, what are the executable ELF files respectively for static linker dynamic linker loader dynamic loader? Which of them are invoked by execve() by dlopen()? How are they invoked by execve() ...
1 vote
1 answer
4k views
How does Linux kernel dynamically use a module?
Understanding the Linux Kernel says The kernel has two key tasks to perform in managing modules. The first task is mak- ing sure the rest of the kernel can reach the module’s global symbols, such ...
0 votes
2 answers
2k views
Will the execution of the binaries that is sitting on a mounted NFS directory fails when network interruption happen?
So I have a Linux machine that acts as an NFS server. Lots of programs has been installed to the folder that is being exported. On another Linux machine, I've been running one of the program that is ...