SUSE / libpulp

libpulp enables live patching in user space applications.
GNU Lesser General Public License v2.1
55 stars 11 forks source link

Avoid opening libdl.so to interpose dlsym #47

Closed giulianobelinassi closed 3 years ago

giulianobelinassi commented 3 years ago

Previously, libpulp opened and parsed the ELF content of libdl.so file to find the address to dlsym to interpose it. Instead of relying on the .so file, we parsed the alreay loaded ELF program header structures that is in the program memory to find the address to dlsym.

This commit also removes the requirement of libelf from libpulp.so, but the tools still require it.

Signed-off-by: Giuliano Belinassi gbelinassi@suse.de