diff options
author | Anup Patel <apatel@ventanamicro.com> | 2023-11-18 18:58:47 +0530 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-11-21 15:33:08 +0000 |
commit | 095773e707ae1509f5bca0ad82f4e510e2ecdf80 (patch) | |
tree | 45c2adc737245339c9971df8b2ddca14835d1f8c | |
parent | 328f0879eeaee9ac167e3d00e4a9b5553e99d2f9 (diff) | |
download | kvmtool-095773e707ae1509f5bca0ad82f4e510e2ecdf80.tar.gz |
riscv: Fix guest/init linkage for multilib toolchain
For RISC-V multilib toolchains, we must specify -mabi and -march
options when linking guest/init.
Fixes: 2e99678314c2 ("riscv: Initial skeletal support")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20231118132847.758785-7-apatel@ventanamicro.com
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -223,9 +223,11 @@ ifeq ($(ARCH),riscv) OBJS += riscv/aia.o ifeq ($(RISCV_XLEN),32) CFLAGS += -mabi=ilp32d -march=rv32gc + GUEST_INIT_FLAGS += -mabi=ilp32d -march=rv32gc endif ifeq ($(RISCV_XLEN),64) CFLAGS += -mabi=lp64d -march=rv64gc + GUEST_INIT_FLAGS += -mabi=lp64d -march=rv64gc endif ARCH_WANT_LIBFDT := y |