From 2f9ad037ac7a28031cfff935a97627796b939d02 Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Wed, 19 Dec 2018 10:16:49 -0800 Subject: Link with libgcc Signed-off-by: Nathaniel Graff --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ff6207d..4ac8176 100644 --- a/Makefile +++ b/Makefile @@ -237,7 +237,7 @@ $(PROGRAM_ELF): \ CFLAGS="-Os -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -g" \ CXXFLAGS="-Os -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -g" \ LDFLAGS="-nostartfiles -nostdlib -L$(sort $(dir $(abspath $(filter %.a,$^)))) -T$(abspath $(filter %.lds,$^))" \ - LDLIBS="-Wl,--start-group -lc -lmee -lmee-gloss -Wl,--end-group" + LDLIBS="-Wl,--start-group -lc -lgcc -lmee -lmee-gloss -Wl,--end-group" touch -c $@ $(PROGRAM_HEX): \ -- cgit v1.2.3