summaryrefslogtreecommitdiff
path: root/cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2025-03-13 10:03:16 -0700
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-03-13 10:03:16 -0700
commit1ce5baaf578e69e584e7b60360fef1eed664b9d4 (patch)
tree65a39ec4a4ca0a3d1dd99a43dabd3632ca865699 /cc
parent9924d514746cb9e246d9d1aab31e4b67562a055c (diff)
parent764b09144e61c9759f2ef38c6ed9c04ef6bf4b5a (diff)
Merge "_FORTIFY_SOURCE=3 for the host." into main
Diffstat (limited to 'cc')
-rw-r--r--cc/config/x86_linux_bionic_host.go2
-rw-r--r--cc/config/x86_linux_host.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cc/config/x86_linux_bionic_host.go b/cc/config/x86_linux_bionic_host.go
index ddc86c299..d2f88ef34 100644
--- a/cc/config/x86_linux_bionic_host.go
+++ b/cc/config/x86_linux_bionic_host.go
@@ -28,7 +28,7 @@ var (
"-fno-omit-frame-pointer",
"-U_FORTIFY_SOURCE",
- "-D_FORTIFY_SOURCE=2",
+ "-D_FORTIFY_SOURCE=3",
"-fstack-protector-strong",
// From x86_64_device
diff --git a/cc/config/x86_linux_host.go b/cc/config/x86_linux_host.go
index c070050b7..c3f25aa21 100644
--- a/cc/config/x86_linux_host.go
+++ b/cc/config/x86_linux_host.go
@@ -29,7 +29,7 @@ var (
"-fno-omit-frame-pointer",
"-U_FORTIFY_SOURCE",
- "-D_FORTIFY_SOURCE=2",
+ "-D_FORTIFY_SOURCE=3",
"-fstack-protector",
"--gcc-toolchain=${LinuxGccRoot}",