1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

arch/riscv: use natural malign-data type

This commit is contained in:
Alexandre Abadie 2021-02-09 10:45:51 +01:00
parent eaabcac205
commit 56165d22a4
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -37,6 +37,9 @@ ifeq ($(TOOLCHAIN),llvm)
TARGET_ARCH_LLVM := riscv32-none-elf
else
CFLAGS_CPU += -mcmodel=medlow -msmall-data-limit=8
ifneq (,$(shell $(TARGET_ARCH)-gcc --help=target | grep '\-malign-data='))
CFLAGS_CPU += -malign-data=natural
endif
endif
CFLAGS_LINK = -ffunction-sections -fdata-sections
CFLAGS_DBG ?= -g3