[lld] [LLD][Docs] Document -z gcs= option in the man page (PR #146522)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 09:43:47 PDT 2025


================
@@ -953,6 +958,15 @@ disallows overlap.
 .It Cm shstk
 x86 only, use shadow stack.
 .Pp
+.It Cm gcs Ns = Ns Ar [implicit|never|always]
+Specifies how the GNU_PROPERTY_AARCH64_FEATURE_1_GCS bit is set in the output ELF file. When set, it indicates support for the Guarded Control Stack (GCS) security feature.
----------------
MaskRay wrote:

Use `.Cm GNU_PROPERTY_AARCH64_FEATURE_1_GCS`

https://github.com/llvm/llvm-project/pull/146522


More information about the llvm-commits mailing list