git: 2f029030fe64 - main - CHANGES: Document USES=elfctl

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Fri, 18 Feb 2022 19:07:14 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2f029030fe64faa328fd2414c3370f7565f8994a

commit 2f029030fe64faa328fd2414c3370f7565f8994a
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2022-02-18 19:02:17 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2022-02-18 19:06:53 +0000

    CHANGES: Document USES=elfctl
    
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D34125
---
 CHANGES | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/CHANGES b/CHANGES
index 4d80de184328..bb1fdcf4d997 100644
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,23 @@ in the release notes and/or placed into UPDATING.
 
 All ports committers are allowed to commit to this file.
 
+20220218:
+AUTHOR: jrm@FreeBSD.org
+
+  A new USES has been added to change an ELF binary's feature control note.
+
+    USES=           elfctl
+    ELF_FEATURES=   +noaslr,wxneeded:foo \
+                    -noprotmax:foo \
+                    +nostackgap:bar
+
+  Turns on noaslr and wxneeded and turns off noprotmax for the ELF
+  binary foo and turns on nostackgap for the ELF binary bar.
+
+  The file paths listed in ELF_FEATURES are relative to ${BUILD_WRKSRC}.
+  File modifications are made post-build as certain test targets may run on
+  the build-tree binaries.
+
 20220127:
 AUTHOR: kde@FreeBSD.org