From fd233832ef64a04456fc26e2f2763d946f853128 Mon Sep 17 00:00:00 2001 From: Drew Hintz Date: Wed, 6 Feb 2019 11:44:18 -0800 Subject: [PATCH] add -lgcc flag to fix "undefined reference to __aeabi_llsr" (#156) https://github.com/commaai/openpilot/issues/522 --- board/build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/build.mk b/board/build.mk index 926a9a34c8..311f2dcdbd 100644 --- a/board/build.mk +++ b/board/build.mk @@ -55,7 +55,7 @@ obj/$(PROJ_NAME).bin: obj/$(STARTUP_FILE).o obj/main.$(PROJ_NAME).o obj/bootstub.$(PROJ_NAME).bin: obj/$(STARTUP_FILE).o obj/bootstub.$(PROJ_NAME).o obj/sha.$(PROJ_NAME).o obj/rsa.$(PROJ_NAME).o - $(CC) $(CFLAGS) -o obj/bootstub.$(PROJ_NAME).elf $^ + $(CC) $(CFLAGS) -o obj/bootstub.$(PROJ_NAME).elf $^ -lgcc $(OBJCOPY) -v -O binary obj/bootstub.$(PROJ_NAME).elf $@ clean: