aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorFrederic Cambus <fred@statdns.com>2021-04-14 11:15:01 +0100
committerNick Clifton <nickc@redhat.com>2021-04-14 11:15:01 +0100
commit5f47741bf633596475bb8fbb0ed304be318362cd (patch)
tree5cf3ee9d2f442325a5f3a0e77624b508c0a1719e /binutils
parent8985b74b7d0f957eda8ec12e88665dab17f00a15 (diff)
downloadfsf-binutils-gdb-5f47741bf633596475bb8fbb0ed304be318362cd.zip
fsf-binutils-gdb-5f47741bf633596475bb8fbb0ed304be318362cd.tar.gz
fsf-binutils-gdb-5f47741bf633596475bb8fbb0ed304be318362cd.tar.bz2
Remove unneeded tests for definitions of NT_BSDNETCORE values.
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.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 5148da4..daa258c 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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
diff --git a/binutils/readelf.c b/binutils/readelf.c
index dc7764a..b404ca7 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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