From 04fed905b8be1dd77340c3abaebb6dd9cd25e627 Mon Sep 17 00:00:00 2001 From: Lorenzo Leone Date: Mon, 9 Dec 2024 08:46:11 +0100 Subject: [PATCH] [SW]: Disable linker relaxation --- sw/sw.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/sw.mk b/sw/sw.mk index 0c55342..097e646 100644 --- a/sw/sw.mk +++ b/sw/sw.mk @@ -14,10 +14,10 @@ CHS_SW_INCLUDES += -I$(CHIM_SW_DIR)/include # SCHEREMO: use im for platform-level SW, as the smallest common denominator between CVA6 and the Snitch cluster. # CVA6's bootrom however needs imc, so override that for this specific case. -CHS_SW_FLAGS += -falign-functions=64 -march=rv32im +CHS_SW_FLAGS += -falign-functions=64 -march=rv32im -mno-relax CHS_BROM_FLAGS += -march=rv32imc -CHS_SW_LDFLAGS += -L$(CHIM_SW_DIR)/lib +CHS_SW_LDFLAGS += -L$(CHIM_SW_DIR)/lib -mno-relax CHIM_SW_LIB_SRCS_C = $(wildcard $(CHIM_SW_DIR)/lib/*.c $(CHIM_SW_DIR)/lib/**/*.c) CHIM_SW_LIB_SRCS_O = $(CHIM_SW_DEPS_SRCS:.c=.o) $(CHIM_SW_LIB_SRCS_S:.S=.o) $(CHIM_SW_LIB_SRCS_C:.c=.o)