]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Use dwfl_addrmodule for l_ld lookup, don't bail on lookup failure.
authorRoland McGrath <roland@redhat.com>
Thu, 5 Nov 2009 19:43:38 +0000 (11:43 -0800)
committerRoland McGrath <roland@redhat.com>
Thu, 5 Nov 2009 19:43:38 +0000 (11:43 -0800)
libdwfl/ChangeLog
libdwfl/link_map.c

index 48f266513c51ca672b24019e184334fd39135977..9e76838fd5115234be534d19a66c11462ab0d71e 100644 (file)
@@ -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>
 
index 7938f85e5694cba3e7298873ac79d30126350ceb..ecb4990586f169f98cf41334616464d53853fb54 100644 (file)
@@ -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.  */