]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390: Add stack protector guard doc
authorStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Wed, 12 Nov 2025 17:03:50 +0000 (18:03 +0100)
committerStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Wed, 12 Nov 2025 17:03:50 +0000 (18:03 +0100)
Add documentation for options -mstack-protector-guard= and
-mstack-protector-guard-record which were added in commit
r16-5192-g0cd1f03939d and regenerate .opt.urls.

gcc/ChangeLog:

* config/i386/i386.opt.urls: Regenerate.
* config/s390/s390.opt.urls: Ditto.
* doc/invoke.texi: Add documentation for
-mstack-protector-guard= and -mstack-protector-guard-record.

gcc/config/i386/i386.opt.urls
gcc/config/s390/s390.opt.urls
gcc/doc/invoke.texi

index a9bbac0ef9b9b362626c788efb84971751082f9f..a89329b48449f54399166f257ce71c316531df55 100644 (file)
@@ -438,7 +438,7 @@ mpku
 UrlSuffix(gcc/x86-Options.html#index-mpku)
 
 mstack-protector-guard=
-UrlSuffix(gcc/x86-Options.html#index-mstack-protector-guard-4)
+UrlSuffix(gcc/x86-Options.html#index-mstack-protector-guard-5)
 
 mstack-protector-guard-reg=
 UrlSuffix(gcc/x86-Options.html#index-mstack-protector-guard-reg-3)
index bb53fc9f987fcf8c29748e7717ad6ae6669de3b8..be0904ce1ced4f9cf0e58a42c7182ca1da9110df 100644 (file)
@@ -51,6 +51,12 @@ UrlSuffix(gcc/S_002f390-and-zSeries-Options.html#index-msoft-float-12)
 mstack-guard=
 UrlSuffix(gcc/S_002f390-and-zSeries-Options.html#index-mstack-guard)
 
+mstack-protector-guard=
+UrlSuffix(gcc/S_002f390-and-zSeries-Options.html#index-mstack-protector-guard-4)
+
+mstack-protector-guard-record
+UrlSuffix(gcc/S_002f390-and-zSeries-Options.html#index-mstack-protector-guard-record)
+
 mstack-size=
 UrlSuffix(gcc/S_002f390-and-zSeries-Options.html#index-mstack-size-2)
 
index f022dca564008d6e6e6050b0e0b95230deae38a9..8bfd03d481b66d66c5ea7c64f9df6214d6e5caa1 100644 (file)
@@ -33866,6 +33866,20 @@ If both arguments are zero, hotpatching is disabled.
 
 This option can be overridden for individual functions with the
 @code{hotpatch} attribute.
+
+@opindex mstack-protector-guard
+@opindex mstack-protector-guard-record
+@item -mstack-protector-guard=@var{guard}
+@itemx -mstack-protector-guard-record
+Generate stack protection code using canary at @var{guard}.  Supported
+locations are @var{global} for a global canary or @var{tls} for a per-thread
+canary in the TLS block (the default).
+
+Option @option{-mstack-protector-guard-record} results in the generation of
+section @code{__stack_protector_loc} containing pointers to all instructions
+which load the address of the global guard.  Thus, this option has only an
+effect in conjunction with @option{-mstack-protector-guard=global}.  The
+intended use is for the Linux kernel.
 @end table
 
 @node SH Options