-
Notifications
You must be signed in to change notification settings - Fork 14.4k
[LLD][Docs] Document -z gcs= option in the man page #146522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
cce8b24
fb65d4d
0129664
68b2552
9640c1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -798,6 +798,11 @@ Specify how to report the missing GNU_PROPERTY_X86_FEATURE_1_IBT or GNU_PROPERTY | |||||
.Cm none | ||||||
is the default, linker will not report the missing property otherwise will be reported as a warning or an error. | ||||||
.Pp | ||||||
.It Cm gcs-report Ns = Ns Ar [none|warning|error] | ||||||
Specify how to report missing GNU_PROPERTY_AARCH64_FEATURE_1_GCS property. GNU_PROPERTY_AARCH64_FEATURE_1_GCS indicates object file support for the Guarded Control Stack security feature. | ||||||
.Cm none | ||||||
is the (default) linker will not report the missing property otherwise, missing property will be reported as a warning or an error. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. without the comma the sentence is strange to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here we might want to keep the wording as is, same as it is for
Which are the same flag type and has the exact same wording. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apologies for being a pain. A couple of nits on this line: I meant (default) at the start of the line. However, looking at bti-report and cet-report above it is probably better to follow the convention and use "is the default," . It was probably that originally; sorry for the noise. The comma after otherwise looks to be in the wrong position [1]. I think we should follow the wording of bit-report and cet-report.
[1] If I were rewriting with a comma I'd say "report the missing propery, otherwise it will be reported as a warning or an error." However best to stay consistent with the existing wording. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack, also for |
||||||
.Pp | ||||||
.It Cm dynamic-undefined-weak | ||||||
Make undefined weak symbols dynamic when the dynamic symbol table is present, if they are referenced from | ||||||
relocatable object files and not forced local by symbol visibility or versioning. Do not make them dynamic when | ||||||
|
@@ -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. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack, handled. |
||||||
.Cm implicit | ||||||
is the (default) GCS feature bit is inferred from the input object marking. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reads as "is the GCS feature bit is inferred... "
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Above is outdated, I believe that new version does not suffer from same ambiguity. |
||||||
.Cm never | ||||||
clears the GCS feature bit regardless of input object markings. | ||||||
.Cm always | ||||||
set the GCS feature bit regardless of input object markings. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack, changed set->sets |
||||||
.Pp | ||||||
.It Cm stack-size Ns = Ns Ar size | ||||||
Set the main thread's stack size to | ||||||
.Ar size . | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GNU_PROPERTY_AARCH64_FEATURE_1_*
properties need to use.Cm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack, handled.