From f7c0afdb6eb6718d984072c460c8ec6da9713671 Mon Sep 17 00:00:00 2001 From: AdityaK Date: Fri, 10 Feb 2023 09:50:39 -0800 Subject: [PATCH] Disable emulated tls for RISCV Bug: b/267688421 Change-Id: I885bcf966db2e9a0a3edc1fee865b3cf9c6ff90a --- cc/config/riscv64_device.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go index 67208b261..b3619c861 100644 --- a/cc/config/riscv64_device.go +++ b/cc/config/riscv64_device.go @@ -35,7 +35,9 @@ var ( } riscv64Lldflags = append(riscv64Ldflags, - "-Wl,-z,max-page-size=4096") + "-Wl,-z,max-page-size=4096", + "-Wl,-plugin-opt,-emulated-tls=0", + ) riscv64Cppflags = []string{}