This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]