Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/bfd remove mis-merged code and make t...



details:   https://anonhg.NetBSD.org/src/rev/b09ebca323fe
branches:  trunk
changeset: 1014371:b09ebca323fe
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 19 21:47:03 2020 +0000

description:
remove mis-merged code and make the auxv core offset 0. Now loading auxv
from core files works.

diffstat:

 external/gpl3/gdb/dist/bfd/elf.c |  16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diffs (33 lines):

diff -r 821c5469ad99 -r b09ebca323fe external/gpl3/gdb/dist/bfd/elf.c
--- a/external/gpl3/gdb/dist/bfd/elf.c  Sat Sep 19 21:45:45 2020 +0000
+++ b/external/gpl3/gdb/dist/bfd/elf.c  Sat Sep 19 21:47:03 2020 +0000
@@ -10893,7 +10893,7 @@
 #ifdef NT_NETBSDCORE_AUXV
     case NT_NETBSDCORE_AUXV:
       /* NetBSD-specific Elf Auxiliary Vector data. */
-      return elfcore_make_auxv_note_section (abfd, note, 4);
+      return elfcore_make_auxv_note_section (abfd, note, 0);
 #endif
 #ifdef NT_NETBSDCORE_LWPSTATUS
     case NT_NETBSDCORE_LWPSTATUS:
@@ -11023,20 +11023,6 @@
   if (note->type == NT_OPENBSD_AUXV)
     return elfcore_make_auxv_note_section (abfd, note, 0);
 
-  if (note->type == NT_OPENBSD_WCOOKIE)
-    {
-      asection *sect = bfd_make_section_anyway_with_flags (abfd, ".wcookie",
-                                                          SEC_HAS_CONTENTS);
-
-      if (sect == NULL)
-       return FALSE;
-      sect->size = note->descsz;
-      sect->filepos = note->descpos;
-      sect->alignment_power = 1 + bfd_get_arch_size (abfd) / 32;
-
-      return TRUE;
-    }
-
   return TRUE;
 }
 



Home | Main Index | Thread Index | Old Index