From 42451ed4718af3f93770feb201bd023625d69b3a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 21 Apr 2022 23:25:57 +0300 Subject: fix warnings on 32bit riscv + Will most probably not work on 32bit, but nice to make 'portable' code. --- arch/riscv64/source.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/riscv64/source.mk') diff --git a/arch/riscv64/source.mk b/arch/riscv64/source.mk index d1986d4..ce229a4 100644 --- a/arch/riscv64/source.mk +++ b/arch/riscv64/source.mk @@ -4,7 +4,8 @@ INIT_SOURCES += arch/riscv64/init/*.[cS] CLEANUP_CMD := ./arch/riscv64/conf/rmimage.sh -ARCH_FLAGS := -mcmodel=medany +ARCH_CFLAGS := -mcmodel=medany -fno-strict-aliasing +ARCH_LDFLAGS := # llvm compilation doesn't seem to work, either bfd reads the object files wrong # and outputs incorrect symbols or lld handles relocations in a dumb way. Only -- cgit v1.3