This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
question on ebl openbackend dlopen()
- From: Tony Jones <tonyj at suse dot de>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 13 Dec 2011 23:46:42 -0800
- Subject: question on ebl openbackend dlopen()
Hi.
Can anyone tell me how the dlopen() calls work on a Fedora system if a
static libdw is used?
On SuSE systems, if libdw.so is used (containing relevant libebl) I see
the first dlopen("$ORIGIN/../$LIB/elfutils/libebl_x86_64.so" succeed as:
open("/usr/lib64/../lib64/elfutils/libebl_x86_64.so", O_RDONLY) = 8
If the code is statically linked against libdw.a the first dlopen
attempts to generate a path
"/{path_to_static_exe}/../lib64/elfutils/libebl_x86_64.so" which fails.
The second basename dlopen() attempts a path search but this never looks
in the "elfutils" subfolder.
Tony