diff options
author | 2025-03-12 07:35:40 -0700 | |
---|---|---|
committer | 2025-03-13 06:48:59 -0700 | |
commit | 764b09144e61c9759f2ef38c6ed9c04ef6bf4b5a (patch) | |
tree | 6d5e677af20986797da2e5e93b2ceec27c4494b9 /cc | |
parent | 18548fd4d847dea2090e8763d00f4d0ee22f21d0 (diff) |
_FORTIFY_SOURCE=3 for the host.
musl has no fortify, and our ancient glibc only has level 2, but this is
meaningful for bionic, and consistency of compiler flags seems like the
least worst option.
Bug: http://b/291762537
Change-Id: I779d64096cd089475e058b05ed01892bf72ccedb
Diffstat (limited to 'cc')
-rw-r--r-- | cc/config/x86_linux_bionic_host.go | 2 | ||||
-rw-r--r-- | cc/config/x86_linux_host.go | 2 |
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}", |