From e6f4798e7b362945df7d6ba0034ed60aee6461b9 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 6 Jul 2023 10:01:15 +0000 Subject: [PATCH] use symbolic name PF_X instead of 1, pointed out by kettenis --- gnu/usr.bin/binutils-2.17/bfd/elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/binutils-2.17/bfd/elf.c b/gnu/usr.bin/binutils-2.17/bfd/elf.c index 6c1454c8b70..feb9a2725b6 100644 --- a/gnu/usr.bin/binutils-2.17/bfd/elf.c +++ b/gnu/usr.bin/binutils-2.17/bfd/elf.c @@ -3986,7 +3986,7 @@ map_sections_to_segments (bfd *abfd) goto error_return; m->next = NULL; m->p_type = PT_OPENBSD_WXNEEDED; - m->p_flags = 1; + m->p_flags = PF_X; m->p_flags_valid = 1; *pm = m; @@ -4001,7 +4001,7 @@ map_sections_to_segments (bfd *abfd) goto error_return; m->next = NULL; m->p_type = PT_OPENBSD_NOBTCFI; - m->p_flags = 1; + m->p_flags = PF_X; m->p_flags_valid = 1; *pm = m; -- 2.20.1