From: deraadt Date: Thu, 6 Jul 2023 10:01:15 +0000 (+0000) Subject: use symbolic name PF_X instead of 1, pointed out by kettenis X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e6f4798e7b362945df7d6ba0034ed60aee6461b9;p=openbsd use symbolic name PF_X instead of 1, pointed out by kettenis --- 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;