Remove now unneeded #ifdef check for NT_NETBSD_PAX.

Message ID YHRGBQ22EoLldPnA@gmail.com
State New
Headers show
Series
  • Remove now unneeded #ifdef check for NT_NETBSD_PAX.
Related show

Commit Message

Frederic Cambus April 12, 2021, 1:07 p.m.
NT_NETBSD_PAX was defined in commit be3b926d8d2dde16a55e9e303fadf95164e13ebf.

binutils/ChangeLog:

	* readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
	check for NT_NETBSD_PAX.
---
 binutils/ChangeLog | 5 +++++
 binutils/readelf.c | 2 --
 2 files changed, 5 insertions(+), 2 deletions(-)

-- 
2.30.2

Comments

Roland McGrath via Binutils April 13, 2021, 6:45 a.m. | #1
On Mon, Apr 12, 2021 at 03:07:17PM +0200, Frederic Cambus wrote:
> 	* readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef

> 	check for NT_NETBSD_PAX.


Applied.

-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 9e883739494..81dfbbc87fd 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@ 
+2021-04-12  Frederic Cambus  <fred@statdns.com>
+
+	* readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
+	check for NT_NETBSD_PAX.
+
 2021-04-09  Alan Modra  <amodra@gmail.com>
 
 	* objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 840a160ae82..9d0104d9791 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -19522,7 +19522,6 @@  process_netbsd_elf_note (Elf_Internal_Note * pnote)
 	      pnote->descdata);
       return true;
 
-#ifdef   NT_NETBSD_PAX
     case NT_NETBSD_PAX:
       if (pnote->descsz < 1)
 	break;
@@ -19535,7 +19534,6 @@  process_netbsd_elf_note (Elf_Internal_Note * pnote)
 	      ((version & NT_NETBSD_PAX_ASLR) ? "+ASLR" : ""),
 	      ((version & NT_NETBSD_PAX_NOASLR) ? "-ASLR" : ""));
       return true;
-#endif
     }
 
   printf ("  NetBSD\t0x%08lx\tUnknown note type: (0x%08lx)\n",