]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add tool to modify ELF binary feature control bits
authorEd Maste <emaste@FreeBSD.org>
Sun, 8 Mar 2020 21:02:35 +0000 (21:02 +0000)
committerEd Maste <emaste@FreeBSD.org>
Sun, 8 Mar 2020 21:02:35 +0000 (21:02 +0000)
commit0e4f56faeb32da2628cb3d2ce0673740e7d052ac
treedce8384502ab13135f1c15af70959154b828857a
parent17d5f207e7421181312e36e461b8809537154e5d
Add tool to modify ELF binary feature control bits

MFC r352797: Add tool to modify ELF binary feature control bits

This will allow feature control bits (e.g. for ASLR, PROT_MAX) to be
inspected or modified.

Some clean-up and additional work is likely still required, but we can
iterate on this in the tree.

Submitted by: Bora Ã–zarslan <borako.ozarslan@gmail.com>

MFC r352799: controlelf: clean up warnings

- use explicit ELF note name when not found
- no trailing . on warnings
- no \n

MFC r352801: controlelf: install standard BSD 2 clause license

MFC r352803: controlelf: some style(9) cleanup

MFC r352805: controlelf: add protmax control

MFC r352806: controlelf: tidy up option parsing

MFC r352808: controlelf: simplify feature string parsing

Also add error handling on failure to seek/write updated value.

MFC r352809: controlelf: exit with error if file endianness does not match host

We need to add support for cross-endian operation, but until that's done
just exit with an error rather than misbehaving.

MFC r352815: controlelf: update man page

Some minor corrections, clarifications or rewording.

Sponsored by: The FreeBSD Foundation
tools/tools/controlelf/Makefile [new file with mode: 0644]
tools/tools/controlelf/controlelf.1 [new file with mode: 0644]
tools/tools/controlelf/controlelf.c [new file with mode: 0644]