]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Don't suppress full file names found in core-file link_map.
authorRoland McGrath <roland@redhat.com>
Wed, 18 Aug 2010 09:54:29 +0000 (02:54 -0700)
committerRoland McGrath <roland@redhat.com>
Wed, 18 Aug 2010 09:54:29 +0000 (02:54 -0700)
libdwfl/ChangeLog
libdwfl/link_map.c

index f0a8529d2d7f9ce6024d059bdfe1a498f4ab4982..eb8aa8ac1eeec92593c35aadb280bd89a1a486da 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-18  Roland McGrath  <roland@redhat.com>
+
+       * link_map.c (report_r_debug): Use found name if we have no name,
+       even if we already have an Elf handle.
+
 2010-06-30  Roland McGrath  <roland@redhat.com>
 
        * linux-kernel-modules.c (dwfl_linux_kernel_find_elf): Don't be
index 403b2df68363639ff9b30e9659fd403cba679ff7..8ec06269c92411df995ca7089a63e7df4f2de959 100644 (file)
@@ -398,9 +398,7 @@ report_r_debug (uint_fast8_t elfclass, uint_fast8_t elfdata,
             the full file name from l_name.  Opening the file by this
             name will be the fallback when no build ID match is found.
             XXX hook for sysroot */
-         if (name != NULL
-             && mod->main.elf == NULL
-             && mod->main.name == NULL)
+         if (name != NULL && mod->main.name == NULL)
            mod->main.name = strdup (name);
        }
       else if (name != NULL)