summaryrefslogtreecommitdiffstats
path: root/arch/riscv/errata/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/errata/Makefile')
-rw-r--r--arch/riscv/errata/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/errata/Makefile b/arch/riscv/errata/Makefile
index a1055965fbee..7b2637c8c332 100644
--- a/arch/riscv/errata/Makefile
+++ b/arch/riscv/errata/Makefile
@@ -1,2 +1,6 @@
+ifdef CONFIG_RELOCATABLE
+KBUILD_CFLAGS += -fno-pie
+endif
+
obj-$(CONFIG_ERRATA_SIFIVE) += sifive/
obj-$(CONFIG_ERRATA_THEAD) += thead/