Remove unneeded tests for definitions of NT_BSDNETCORE values.
authorFrederic Cambus <fred@statdns.com>
Wed, 14 Apr 2021 10:15:01 +0000 (11:15 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 14 Apr 2021 10:15:01 +0000 (11:15 +0100)
binutils* readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.

bfd * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.

bfd/ChangeLog
bfd/elf.c
binutils/ChangeLog
binutils/readelf.c

index 4d715226693fbba317b28dcab9fe0e14e446d04f..d03929ae619548b13f5746289f201fd76609df14 100644 (file)
@@ -1,3 +1,8 @@
+2021-04-14  Frederic Cambus  <fred@statdns.com>
+
+       * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
+       checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
+
 2021-04-14  Alan Modra  <amodra@gmail.com>
 
        PR 27631
index 276fa14c0dda8288ee477ae3a9b538f2c5261db6..ef2193b07e99fd97baeb28688ca8cdb1f885f2fc 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -10945,17 +10945,13 @@ elfcore_grok_netbsd_note (bfd *abfd, Elf_Internal_Note *note)
         since the kernel writes this note out first when it
         creates a core file.  */
       return elfcore_grok_netbsd_procinfo (abfd, note);
-#ifdef NT_NETBSDCORE_AUXV
     case NT_NETBSDCORE_AUXV:
       /* NetBSD-specific Elf Auxiliary Vector data. */
       return elfcore_make_auxv_note_section (abfd, note, 4);
-#endif
-#ifdef NT_NETBSDCORE_LWPSTATUS
     case NT_NETBSDCORE_LWPSTATUS:
       return elfcore_make_note_pseudosection (abfd,
                                              ".note.netbsdcore.lwpstatus",
                                              note);
-#endif
     default:
       break;
     }
index 5148da4a2197185c5a4df88451d18cbb0825ebb3..daa258c4d76f842d79fd5885c43207ef84a2572a 100644 (file)
@@ -1,3 +1,8 @@
+2021-04-14  Frederic Cambus  <fred@statdns.com>
+
+       * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
+       checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
+
 2021-04-14  Alan Modra  <amodra@gmail.com>
 
        PR 27716
index dc7764a9bb9fbeca7dee70ecad19141a35553f90..b404ca7017a10413ec07e883a52d6c044973d273 100644 (file)
@@ -19583,15 +19583,11 @@ get_netbsd_elfcore_note_type (Filedata * filedata, unsigned e_type)
       /* NetBSD core "procinfo" structure.  */
       return _("NetBSD procinfo structure");
 
-#ifdef NT_NETBSDCORE_AUXV
     case NT_NETBSDCORE_AUXV:
       return _("NetBSD ELF auxiliary vector data");
-#endif
 
-#ifdef NT_NETBSDCORE_LWPSTATUS
     case NT_NETBSDCORE_LWPSTATUS:
       return _("PT_LWPSTATUS (ptrace_lwpstatus structure)");
-#endif
 
     default:
       /* As of Jan 2020 there are no other machine-independent notes
This page took 0.037106 seconds and 4 git commands to generate.