summaryrefslogtreecommitdiff
path: root/cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2025-03-13 11:59:06 -0700
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2025-03-13 11:59:06 -0700
commit6707305de6c5bc9766b51b31e9ea8edd79cc13cf (patch)
tree72f4d1641c956ff0d94bde0d01a0abda0bbfcfd1 /cc
parent82a2e39401088a4e277a4ff0ae9cdbe3352378fe (diff)
parent95972ec46ef32f2e3fc6cbee36f0afb1b75cd5c9 (diff)
Merge "_FORTIFY_SOURCE=3 for the host." into main am: 1ce5baaf57 am: 95972ec46e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3539479 Change-Id: Ibfd2f84b7c358e916f32d733b35cf8ff447ab2aa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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}",