This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch+7.5.1] Work around PR libc/13097 "linux-vdso.so.1" #3


On Tuesday 27 November 2012 19:20:15 Pedro Alves wrote:
> BTW, before that change, when the vDSO was nameless, what made sure it
> didn't appear in the DSO list?  Where was it skipped?

i know little about the glibc internals when it comes to the debugger 
interface.  i think the gdb warning started happening after this commit:

commit 73d7af4f4c2b394063cb0b3a33ee2b00b5ad80b4
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Sat Aug 13 22:24:08 2011 -0400

    Implement LD_DEBUG=scopes

which contains:

--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1391,7 +1391,7 @@ of this helper program; chances are you did not intend 
to run this program.\n\
          char *copy = malloc (len);
          if (copy == NULL)
        _dl_fatal_printf ("out of memory\n");
-         l->l_libname->name = memcpy (copy, dsoname, len);
+         l->l_name = l->l_libname->name = memcpy (copy, dsoname, len);
        }
 
      /* Add the vDSO to the object list.  */

which is what is reverted in Fedora's glibc version
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]