You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[LLD][Docs] Document -z gcs= option in the man page (llvm#146522)
Add documentation for the -z gcs= option to the LLD man page. This flag
controls how the GCS bit is set in the output:
- implicit (default): inferred from input objects
- never: GCS bit is never set
- always: GCS bit is always set
Clarifies behavior for users and aligns the man page with existing
functionality.
Copy file name to clipboardExpand all lines: lld/docs/ld.lld.1
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -798,6 +798,13 @@ Specify how to report the missing GNU_PROPERTY_X86_FEATURE_1_IBT or GNU_PROPERTY
798
798
.Cmnone
799
799
is the default, linker will not report the missing property otherwise will be reported as a warning or an error.
800
800
.Pp
801
+
.ItCmgcs-reportNs=NsAr[none|warning|error]
802
+
Specify how to report missing
803
+
.CmGNU_PROPERTY_AARCH64_FEATURE_1_GCS
804
+
property. GNU_PROPERTY_AARCH64_FEATURE_1_GCS indicates object file support for the Guarded Control Stack security feature.
805
+
.Cmnone
806
+
is the default, linker will not report the missing property otherwise will be reported as a warning or an error.
807
+
.Pp
801
808
.ItCmdynamic-undefined-weak
802
809
Make undefined weak symbols dynamic when the dynamic symbol table is present, if they are referenced from
803
810
relocatable object files and not forced local by symbol visibility or versioning. Do not make them dynamic when
@@ -953,6 +960,17 @@ disallows overlap.
953
960
.ItCmshstk
954
961
x86 only, use shadow stack.
955
962
.Pp
963
+
.ItCmgcsNs=NsAr[implicit|never|always]
964
+
Specifies how the
965
+
.CmGNU_PROPERTY_AARCH64_FEATURE_1_GCS
966
+
bit is set in the output ELF file. When set, it indicates support for the Guarded Control Stack (GCS) security feature.
967
+
.Cmimplicit
968
+
(default) The GCS feature bit is set if all input relocatable files have a .note.gnu.property section containing the GNU_PROPERTY_AARCH64_FEATURE_1_GCS bit.
969
+
.Cmnever
970
+
clears the GCS feature bit regardless of input relocatable files' markings.
971
+
.Cmalways
972
+
sets the GCS feature bit regardless of input object markings.
0 commit comments