Merge "riscv64: stop reserving x18 for shadow call stack."

This commit is contained in:
Elliott Hughes
2023-04-19 14:38:37 +00:00
committed by Gerrit Code Review

View File

@@ -26,8 +26,6 @@ var (
// 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 @@ var (
riscv64Ldflags = []string{
"-Wl,--hash-style=gnu",
// For -fsanitize=shadow-call-stack.
"-ffixed-x18",
}
riscv64Lldflags = append(riscv64Ldflags,