fw: add workaround so objdump can disassemble compressed rv32

instructions
This commit is contained in:
Daniel Jobson 2024-10-16 16:02:54 +02:00
parent e21961ca0d
commit a57178f9d9
No known key found for this signature in database
GPG Key ID: 3707A9DBF4BB8F1A

View File

@ -198,7 +198,11 @@ secret:
# Firmware generation.
# Included in the bitstream.
#-------------------------------------------------------------------
LDFLAGS = -T $(P)/fw/tk1/firmware.lds
# -Wl,-mllvm,-mattr=+c,-mllvm,-mattr=+zmmul added as a workaround to be able to
# disassemble compressed RV32 instructions
LDFLAGS = \
-T $(P)/fw/tk1/firmware.lds \
-Wl,-mllvm,-mattr=+c,-mllvm,-mattr=+zmmul
$(FIRMWARE_OBJS): $(FIRMWARE_DEPS)
$(TESTFW_OBJS): $(FIRMWARE_DEPS)