From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Date: Wed, 25 Oct 2023 15:42:22 +0200 Subject: [kvmtool PATCH v2 6/6] riscv: Fix guest/init linkage for multilib toolchain In-Reply-To: <20230918125730.1371985-7-apatel@ventanamicro.com> References: <20230918125730.1371985-1-apatel@ventanamicro.com> <20230918125730.1371985-7-apatel@ventanamicro.com> Message-ID: <20231025-58718d04ce00e6ce7bbd4ef2@orel> List-Id: To: kvm-riscv@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Mon, Sep 18, 2023 at 06:27:30PM +0530, Anup Patel wrote: > 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 > --- > Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Makefile b/Makefile > index acd5ffd..d84dc8e 100644 > --- a/Makefile > +++ b/Makefile > @@ -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 > -- > 2.34.1 > Looks good and like something that could be posted independently of this series. Reviewed-by: Andrew Jones Thanks, drew