Skip to content

Commit

Permalink
[SW]: Disable linker relaxation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lore0599 committed Dec 9, 2024
1 parent 2228dff commit 04fed90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sw/sw.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 04fed90

Please sign in to comment.