Skip to content

Commit

Permalink
add -lgcc flag to fix "undefined reference to __aeabi_llsr" (commaai#156
Browse files Browse the repository at this point in the history
  • Loading branch information
adhintz authored and rbiasini committed Feb 6, 2019
1 parent 1cc74e2 commit fd23383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fd23383

Please sign in to comment.