-
Notifications
You must be signed in to change notification settings - Fork 17k
[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
Changes from 1 commit
cce8b24
fb65d4d
0129664
68b2552
9640c1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
-z gcs option in the man page
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.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -953,6 +953,16 @@ disallows overlap. | |
| .It Cm shstk | ||
| x86 only, use shadow stack. | ||
| .Pp | ||
| .It Cm gcs Ns = Ns Ar [implicit|never|always] | ||
| Specify how the GCS bit is set. Set GCS bit indicates object file that supports Guarded Control Stack. | ||
| Specify how the GCS bit is set. A set GCS bit indicates that the object file supports the Guarded Control Stack security feature. | ||
| .Cm implicit | ||
| is the default, where the GCS bit is inferred from the input objects. | ||
|
Collaborator
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. From looking at noseparate-code above. I suggest I've suggested feature bit rather than GCS bit as we've used the full
Contributor
Author
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, wording improved |
||
| .Cm never | ||
| disables the GCS bit regardless of input markings. | ||
|
Collaborator
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. I suggest
Contributor
Author
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, wording improved |
||
| .Cm always | ||
| enables the GCS bit regardless of input markings. | ||
| .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.
I think it would be better to say
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, wording improved