aboutsummaryrefslogtreecommitdiff
path: root/tests/common/arch/riscv64
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common/arch/riscv64')
-rw-r--r--tests/common/arch/riscv64/source.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/common/arch/riscv64/source.mk b/tests/common/arch/riscv64/source.mk
index 517c1c7..e3c0e55 100644
--- a/tests/common/arch/riscv64/source.mk
+++ b/tests/common/arch/riscv64/source.mk
@@ -1 +1,4 @@
-ARCH_FLAGS += -march=rv64imac -mabi=lp64
+# -mno-relax to disable the compiler from using the gp register as a shorthand
+# for __global_pointer$, which I currently don't do anything with. Should
+# probably fix at some point
+ARCH_FLAGS += -march=rv64imac -mabi=lp64 -mno-relax