commit | e4793bc73f077191226d189996b7189ebced4add | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Feb 09 21:15:47 2023 +0000 |
committer | Elliott Hughes <enh@google.com> | Fri Feb 10 01:53:17 2023 +0000 |
tree | 7a8e1a168e8b65b49ece7d58ff54f67cafee43cd | |
parent | a9242e32d555510fd7dba34958b9f5e292c32371 [diff] [blame] |
Allow SCS for riscv64 too. Bug: https://github.com/google/android-riscv64/issues/55 Test: treehugger Change-Id: I319fc662c1dd6083757f78b8d91ec2775ef94a46
diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go index 67208b2..194b242 100644 --- a/cc/config/riscv64_device.go +++ b/cc/config/riscv64_device.go
@@ -26,12 +26,16 @@ // Help catch common 32/64-bit errors. "-Werror=implicit-function-declaration", "-fno-emulated-tls", + // For -fsanitize=shadow-call-stack. + "-ffixed-x18", } riscv64ArchVariantCflags = map[string][]string{} riscv64Ldflags = []string{ "-Wl,--hash-style=gnu", + // For -fsanitize=shadow-call-stack. + "-ffixed-x18", } riscv64Lldflags = append(riscv64Ldflags,