]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
elfctl: add backwards compatibility for "no" prefixes
authorEd Maste <emaste@FreeBSD.org>
Wed, 13 Jan 2021 19:21:38 +0000 (14:21 -0500)
committerEd Maste <emaste@FreeBSD.org>
Tue, 26 Jan 2021 14:43:42 +0000 (09:43 -0500)
commit49d3dcb041f058880486e3489ca79c9476ac7abf
tree6947007d1acf67f5fc0ae1c97df1b2392e384666
parent70cdab054c8ffe7f5561ab8f31db33ee62d12c9c
elfctl: add backwards compatibility for "no" prefixes

I am going to prefix opt-out ELF feature flag names with "no" to make
their meaning more clear (review D28139), but there are some uses of the
existing names already (e.g., the PR referenced below).

For now accept the older, unprefixed name as well, and emit a warning.
We can revert this after FreeBSD 13 branches.

% elfctl -e +aslr foo
elfctl: interpreting aslr as noaslr; please specify noaslr

PR: 239873 (related)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28140

(cherry picked from commit 3dfcb70b6ae9bcb9fd6a66721bebdb8c6a53c329)
usr.bin/elfctl/elfctl.c