Bug 13833 - function().library() is not aware of rpath
Summary: function().library() is not aware of rpath
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 11:27 UTC by Stan Cox
Modified: 2012-03-14 15:42 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stan Cox 2012-03-12 11:27:06 UTC
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
Comment 1 Stan Cox 2012-03-14 15:42:33 UTC
commits: 47e226ed1d and c23caf23e6