From: Martin Liska Date: Wed, 5 Feb 2020 08:55:09 +0000 (+0100) Subject: Document ASLR for Precompiled Headers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4239581925d6a9fba049f8f771e909a7a5e5ce7;p=gcc.git Document ASLR for Precompiled Headers. PR c++/92717 * doc/invoke.texi: Document that one should not combine ASLR and -fpch. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6b5ded32a4..85083e8bc34 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-02-05 Martin Liska + + PR c++/92717 + * doc/invoke.texi: Document that one should + not combine ASLR and -fpch. + 2020-02-04 Richard Biener PR tree-optimization/93538 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 4dec0c8326b..35b341e759f 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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