Document ASLR for Precompiled Headers.
authorMartin Liska <mliska@suse.cz>
Wed, 5 Feb 2020 08:55:09 +0000 (09:55 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 5 Feb 2020 08:55:09 +0000 (09:55 +0100)
PR c++/92717
* doc/invoke.texi: Document that one should
not combine ASLR and -fpch.

gcc/ChangeLog
gcc/doc/invoke.texi

index d6b5ded..85083e8 100644 (file)
@@ -1,3 +1,9 @@
+2020-02-05  Martin Liska  <mliska@suse.cz>
+
+       PR c++/92717
+       * doc/invoke.texi: Document that one should
+       not combine ASLR and -fpch.
+
 2020-02-04  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/93538
index 4dec0c8..35b341e 100644 (file)
@@ -31106,6 +31106,10 @@ precompiled header.  The following are known to be safe:
 -fsched-verbose=@var{number}  -fschedule-insns  -fvisibility= @gol
 -pedantic-errors}
 
+@item Address space layout randomization (ASLR) can lead to not binary identical
+PCH files.  If you rely on stable PCH file contents disable ASLR when generating
+PCH files.
+
 @end itemize
 
 For all of these except the last, the compiler automatically