summaryrefslogtreecommitdiff
path: root/usr.bin/elfctl
Commit message (Collapse)AuthorAgeFilesLines
* Add ELF flag to disable ASLR stack gap.Konstantin Belousov2020-12-181-0/+1
| | | | | | | | | | | | Also centralize and unify checks to enable ASLR stack gap in a new helper exec_stackgap(). PR: 239873 Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=368772
* Reserve FreeBSD ELF feature control bit LA48 to control VA layout on amd64.Konstantin Belousov2020-08-231-0/+1
| | | | | | | | | Tested by: pho Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D25273 Notes: svn path=/head/; revision=364517
* elfctl: update earliest FreeBSD revision to 12.2Ed Maste2020-05-051-1/+1
| | | | | | | | | | | elfctl has been merged to stable/12, and so will appear in FreeBSD 12.2 Reported by: Dewayne Geraghty MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=360676
* elfctl: remove memory leakEd Maste2020-03-111-0/+2
| | | | | | | | | CID: 1420356 Reported by: Coverity Scan Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=358889
* Reserve WXNEEDED ELF feature control flagEd Maste2020-03-041-0/+1
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=358631
* elfctl: check read return valueEd Maste2020-03-041-6/+12
| | | | | | | | | CID: 1420212, 1420213 Reported by: Coverity Scan Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=358623
* elfctl: style(9): use C99 uintX_t typesEd Maste2020-03-041-12/+12
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=358622
* elfctl: tiny style(9) cleanup, use bool where appropriateEd Maste2020-03-021-4/+4
| | | | Notes: svn path=/head/; revision=358546
* elfctl: initialize featuresKyle Evans2020-03-021-0/+1
| | | | | | | | | GCC points out a couple levels down in convert_to_features that this may be used uninitialized. Indeed, this is true- initialize it to NULL so that we at least deref a null pointer. Notes: svn path=/head/; revision=358518
* Move ELF feature note tool to usr.bin/elfctlEd Maste2020-03-023-0/+497
elfctl is a tool for modifying the NT_FREEBSD_FEATURE_CTL ELF note, which contains a set of flags for enabling or disabling vulnerability mitigations and other features. Reviewed by: csjp, kib MFC after: 2 weeks Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23910 Notes: svn path=/head/; revision=358512