diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-10-02 00:28:46 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-10-02 00:37:13 +0200 |
commit | ae06d951b9775c39b92913417c902eae0775e4b6 (patch) | |
tree | e94fa50a0f8d3f8600f7612779367545508383e2 /loc2c.c | |
parent | df61ffd1451723231b70401dbf7d895baa2f1081 (diff) | |
download | systemtap-steved-ae06d951b9775c39b92913417c902eae0775e4b6.tar.gz systemtap-steved-ae06d951b9775c39b92913417c902eae0775e4b6.tar.xz systemtap-steved-ae06d951b9775c39b92913417c902eae0775e4b6.zip |
PR10678 vta-gcc: module debuginfo: relocation refers to undefined symbol
libdwfl tries to resolve all relocations in a module debuginfo file and
if it cannot find a symbol used in a relocation it will fail when
dwfl_module_getdwarf() is called. So we must make sure all possible
dependencies of the module are also in the dwfl. We do this by trying
to find and parse the modules.dep file and insert all dependencies
into the dwfl.
* setupdwfl.cxx (elfutils_kernel_path): Lift from setup_dwfl_kernel and
make static.
(is_comma_dash): New function.
(modname_from_path): Likewise.
(setup_mod_deps): Likewise.
(setup_dwfl_report_kernel_p): Call setup_mod_deps().
* testsuite/buildok/pr10678.stp: New test.
Diffstat (limited to 'loc2c.c')
0 files changed, 0 insertions, 0 deletions