From 464f3b381eac9bdf6957f7d6ad23e8a4569c38cd Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Thu, 22 Jun 2023 18:03:16 +0000 Subject: [PATCH] rust: Enable stack-protector for Rust modules Bug: 288407220 Test: m Change-Id: Ifea0d4e3be715d9cef74ddfc6e64447a006fe0ed --- rust/config/global.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/config/global.go b/rust/config/global.go index f838d0e9a..d844a252b 100644 --- a/rust/config/global.go +++ b/rust/config/global.go @@ -41,6 +41,7 @@ var ( } GlobalRustFlags = []string{ + "-Z stack-protector=strong", "-Z remap-cwd-prefix=.", "-C codegen-units=1", "-C debuginfo=2",