File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ CFLAGS += -Os -DNDEBUG
3333endif
3434
3535LDFLAGS = --nostdlib -T stm32f405.ld
36+ LIBS = $(shell $(CC ) -print-libgcc-file-name)
3637
3738SRC_C = \
3839 main.c \
@@ -145,7 +146,7 @@ $(BUILD)/flash1.bin: $(BUILD)/flash.elf
145146
146147$(BUILD ) /flash.elf : $(OBJ )
147148 $(ECHO ) " LINK $@ "
148- $(Q )$(LD ) $(LDFLAGS ) -o $@ $(OBJ )
149+ $(Q )$(LD ) $(LDFLAGS ) -o $@ $(OBJ ) $( LIBS )
149150 $(Q )$(SIZE ) $@
150151
151152$(BUILD ) /% .o : % .s
Original file line number Diff line number Diff line change @@ -1180,6 +1180,7 @@ int main(void) {
11801180 goto soft_reset ;
11811181}
11821182
1183+ /* now supplied by libgcc library
11831184double __aeabi_f2d(float x) {
11841185 // TODO
11851186 return 0.0;
@@ -1189,6 +1190,7 @@ float __aeabi_d2f(double x) {
11891190 // TODO
11901191 return 0.0;
11911192}
1193+ */
11921194
11931195double sqrt (double x ) {
11941196 // TODO
You can’t perform that action at this time.
0 commit comments