Module Name:    src
Committed By:   christos
Date:           Sat Sep 19 21:47:03 UTC 2020

Modified Files:
        src/external/gpl3/gdb/dist/bfd: elf.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/dist/bfd/elf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/bfd/elf.c
diff -u src/external/gpl3/gdb/dist/bfd/elf.c:1.12 src/external/gpl3/gdb/dist/bfd/elf.c:1.13
--- src/external/gpl3/gdb/dist/bfd/elf.c:1.12	Mon Sep 14 22:05:16 2020
+++ src/external/gpl3/gdb/dist/bfd/elf.c	Sat Sep 19 17:47:03 2020
@@ -10893,7 +10893,7 @@ elfcore_grok_netbsd_note (bfd *abfd, Elf
 #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 @@ elfcore_grok_openbsd_note (bfd *abfd, El
   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;
 }
 

Reply via email to