]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reserve WXNEEDED ELF feature control flag
authoremaste <emaste@FreeBSD.org>
Wed, 4 Mar 2020 18:21:30 +0000 (18:21 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 4 Mar 2020 18:21:30 +0000 (18:21 +0000)
commitf51acb733ef4008e833219d60b20350dbccd33cc
tree6938b3519b4ebcc30da1fbbf2ad8770f9eb2dd48
parent37dfb1e30be2ebe5be167b5bd64b642dc3d7aac5
Reserve WXNEEDED ELF feature control flag

This will be used to tag binaries that require W+X mappings, in advance
of the ability to prevent W^X in mmap/mprotect.

There is still some discussion about the flag's name, but the ABI won't
change even if the name does (as kib pointed out in the review).

Reviewed by: csjp, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23909
contrib/elftoolchain/readelf/readelf.c
sys/sys/elf_common.h
usr.bin/elfctl/elfctl.c