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
_______________________________________________
elfutils-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/elfutils-devel

Reply via email to