diff options
author | Roland McGrath <roland@redhat.com> | 2009-11-05 11:43:38 -0800 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-11-05 11:43:38 -0800 |
commit | 6229eb57c2708ed0e9b6555cc4301aa496649228 (patch) | |
tree | 8f2fa69d0c10c8577860412001b620f311c1329d | |
parent | cdb48e066a4cd6bd487ff8f53a8f8d5bc221a1a8 (diff) | |
download | elfutils-6229eb57c2708ed0e9b6555cc4301aa496649228.tar.gz |
Use dwfl_addrmodule for l_ld lookup, don't bail on lookup failure.
-rw-r--r-- | libdwfl/ChangeLog | 1 | ||||
-rw-r--r-- | libdwfl/link_map.c | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 48f26651..9e76838f 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,6 +1,7 @@ 2009-11-05 Roland McGrath <roland@redhat.com> * link_map.c (report_r_debug): Skip entries with l_ld==0. + Use dwfl_addrmodule for l_ld lookup, don't bail on lookup failure. 2009-09-04 Roland McGrath <roland@redhat.com> diff --git a/libdwfl/link_map.c b/libdwfl/link_map.c index 7938f85e..ecb49905 100644 --- a/libdwfl/link_map.c +++ b/libdwfl/link_map.c @@ -378,11 +378,7 @@ report_r_debug (uint_fast8_t elfclass, uint_fast8_t elfdata, the same area, find that existing module to adjust. The l_ld address is the only one we know for sure to be within the module's own segments (its .dynamic). */ - Dwfl_Module *mod; - int segndx = INTUSE(dwfl_addrsegment) (dwfl, l_ld, &mod); - if (unlikely (segndx < 0)) - return release_buffer (-1); - + Dwfl_Module *mod = INTUSE(dwfl_addrmodule) (dwfl, l_ld); if (mod != NULL) { /* We have a module. We can give it a better name from l_name. */ |