From 74780e61dc5161688bfc99c2aa1649454268ba57 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 1 Dec 2023 02:08:05 +0000 Subject: [PATCH] riscv64: stop explicitly disabling emutls. riscv64 has always had ELF TLS (and the emutls bugs have been fixed now too). Test: treehugger Change-Id: I8dd1d28d4f28a442130e4cf536166ea733f16a96 --- cc/config/riscv64_device.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go index d5bc7601b..e82026047 100644 --- a/cc/config/riscv64_device.go +++ b/cc/config/riscv64_device.go @@ -25,7 +25,6 @@ var ( riscv64Cflags = []string{ // Help catch common 32/64-bit errors. "-Werror=implicit-function-declaration", - "-fno-emulated-tls", "-march=rv64gcv_zba_zbb_zbs", // Equivalent to "-munaligned-access", but our clang doesn't have that yet. "-Xclang -target-feature -Xclang +unaligned-scalar-mem", @@ -44,7 +43,6 @@ var ( riscv64Lldflags = append(riscv64Ldflags, "-Wl,-z,max-page-size=4096", - "-Wl,-plugin-opt,-emulated-tls=0", ) riscv64Cppflags = []string{}