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)