The .library probe modifier is not always aware of an executables rpath, which is set via ld -rpath .library is aware of rpath in iterate_over_libraries query_module sdt_query::handle_query_module iterate_over_notes sdt_query::handle_probe_entry() iterate_over_modules query_module iterate_over_libraries however it is not aware earlier at dwarf_builder::build calls find_executable (user_lib, "LD_LIBRARY_PATH") which doesn't check rpath dwarf_builder::get_user_dw sdt_query;iterate_over_modules->dwfl_getmodules doesn't find e.g. /.../.../libperl only libperl
commits: 47e226ed1d and c23caf23e6