Merge "riscv64: stop reserving x18 for shadow call stack."
diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go
index 76c8e5d..a63d5c2 100644
--- a/cc/config/riscv64_device.go
+++ b/cc/config/riscv64_device.go
@@ -26,8 +26,6 @@
// Help catch common 32/64-bit errors.
"-Werror=implicit-function-declaration",
"-fno-emulated-tls",
- // For -fsanitize=shadow-call-stack.
- "-ffixed-x18",
// A temporary fix for SExtWRemoval miscompilation bug.
"-mllvm",
"-riscv-disable-sextw-removal=true",
@@ -37,8 +35,6 @@
riscv64Ldflags = []string{
"-Wl,--hash-style=gnu",
- // For -fsanitize=shadow-call-stack.
- "-ffixed-x18",
}
riscv64Lldflags = append(riscv64Ldflags,