diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2018-12-19 10:16:49 -0800 |
---|---|---|
committer | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-01-03 12:49:11 -0800 |
commit | 2f9ad037ac7a28031cfff935a97627796b939d02 (patch) | |
tree | f2415efa177b62ef920037d92a87f7c1c93fd921 | |
parent | c76aefe2bce1715e324c6e01c34954e6a8656632 (diff) |
Link with libgcc
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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): \ |