summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2022-02-02 14:45:41 -0800
committer Elliott Hughes <enh@google.com> 2022-02-02 14:45:41 -0800
commitc75994d6235a023df6942fddeaa34b2a66f2e5f6 (patch)
tree11a46be1941d2da95591c7ab1afd0d76e641d30a
parent844d8f52d6facfb27accdca165d276704d7c724f (diff)
Disable BTI for now.
Bug: https://issuetracker.google.com/216395195 Test: readelf -aW libc.so | grep PROPERTY Change-Id: I4d157cbe5bf5b54cb7d3c4efe8fb74d4f72af6f3
-rw-r--r--cc/config/arm64_device.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/config/arm64_device.go b/cc/config/arm64_device.go
index 2d6bcb89d..979c82525 100644
--- a/cc/config/arm64_device.go
+++ b/cc/config/arm64_device.go
@@ -33,7 +33,9 @@ var (
},
"armv8-a-branchprot": []string{
"-march=armv8-a",
- "-mbranch-protection=standard",
+ // Disable BTI until drm vendors stop using OS libraries as sources
+ // of gadgets (https://issuetracker.google.com/216395195).
+ "-mbranch-protection=pac-ret",
},
"armv8-2a": []string{
"-march=armv8.2-a",