| cac751fb | 15-Feb-2022 |
Ed Maste <[email protected]> |
elfctl: fix operations with multiple features on multiple files
Previously an invocation like
elfctl -e +feature1,feature2 file1 file2
would set both feature flags in file 1 but only feature1 in
elfctl: fix operations with multiple features on multiple files
Previously an invocation like
elfctl -e +feature1,feature2 file1 file2
would set both feature flags in file 1 but only feature1 in file2 (due to the string being modified by strsep()).
Reported by: jrm Tested by: jrm MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34283
(cherry picked from commit 82b611ed18e6bfaeadf152ef9216230548c25a8a)
show more ...
|
| c763f99d | 13-Jan-2021 |
Ed Maste <[email protected]> |
elfctl: prefix disable flags with "no"
Some ELF feature flags indicate a request to opt-out of some feature, for example NT_FREEBSD_FCTL_ASLR_DISABLE indicates that ASLR should be disabled for the t
elfctl: prefix disable flags with "no"
Some ELF feature flags indicate a request to opt-out of some feature, for example NT_FREEBSD_FCTL_ASLR_DISABLE indicates that ASLR should be disabled for the tagged binary. Using "aslr" as the short name for the flag is confusing as it seems to indicate a request for ASLR to be enabled. Rename "noaslr", and make a similar change for other opt-out flags.
Reviewed by: bapt, manu, markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28139
show more ...
|
| fdafb99d | 02-Mar-2020 |
Kyle Evans <[email protected]> |
elfctl: initialize features
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 nu
elfctl: initialize features
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.
show more ...
|