Skip to content

Commit

Permalink
Use nosys.specs in makefile build to provide missing symbols, ditch n…
Browse files Browse the repository at this point in the history
…ewlib
  • Loading branch information
kekiefer committed Mar 10, 2017
1 parent 54a32f7 commit 0427c1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 247 deletions.
2 changes: 1 addition & 1 deletion .cproject
Expand Up @@ -64,7 +64,7 @@
<option id="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script.721750031" name="Linker Script (-T)" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.linker.script" value="../STM32F411CEUx_FLASH.ld" valueType="string"/>
<option id="gnu.c.link.option.libs.2085652620" name="Libraries (-l)" superClass="gnu.c.link.option.libs" valueType="libs"/>
<option id="gnu.c.link.option.paths.8806806" name="Library search path (-L)" superClass="gnu.c.link.option.paths"/>
<option id="gnu.c.link.option.ldflags.1740258603" name="Linker flags" superClass="gnu.c.link.option.ldflags" value="-specs=nosys.specs -specs=nano.specs -specs=rdimon.specs -lrdimon" valueType="string"/>
<option id="gnu.c.link.option.ldflags.1740258603" name="Linker flags" superClass="gnu.c.link.option.ldflags" value="-specs=nano.specs -specs=rdimon.specs -lrdimon" valueType="string"/>
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.705418982" superClass="cdt.managedbuild.tool.gnu.c.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -65,7 +65,9 @@ endif
ASFLAGS = $(CFLAGS) -x assembler-with-cpp
LDFLAGS = -Wl,--gc-sections,-Map=$*.map,-cref -fno-short-enums -Wl,--no-enum-size-warning -T $(LDSCRIPT) $(CPU)
ifdef GDB_SEMIHOSTING
LDFLAGS += -specs=nosys.specs -specs=nano.specs -specs=rdimon.specs -lrdimon
LDFLAGS += -specs=nano.specs -specs=rdimon.specs -lrdimon
else
LDFLAGS += -specs=nosys.specs
endif
ARFLAGS = cr
OBJCOPYFLAGS = -Obinary
Expand Down
245 changes: 0 additions & 245 deletions Src/newlib_stubs.c

This file was deleted.

0 comments on commit 0427c1f

Please sign in to comment.