diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-03-15 15:53:51 -0700 |
---|---|---|
committer | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-04-10 10:48:47 -0700 |
commit | a65deddd7375ead7fe495f66470f1978a5d21f3d (patch) | |
tree | 3687325277f0f3380b636eed1a72ccf79fd31721 /scripts | |
parent | cebbb7cb6c7b16767b4ba04e7f231a784be9697a (diff) |
Use newlib-nano
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/standalone.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/standalone.mk b/scripts/standalone.mk index 78328c5..cc35559 100644 --- a/scripts/standalone.mk +++ b/scripts/standalone.mk @@ -96,6 +96,10 @@ RISCV_CXXFLAGS += -ffunction-sections -fdata-sections RISCV_ASFLAGS += -I$(abspath $(BSP_DIR)/install/include/) RISCV_CFLAGS += -I$(abspath $(BSP_DIR)/install/include/) RISCV_CXXFLAGS += -I$(abspath $(BSP_DIR)/install/include/) +# Use newlib-nano +RISCV_ASFLAGS += --specs=nano.specs +RISCV_CFLAGS += --specs=nano.specs +RISCV_CXXFLAGS += --specs=nano.specs # Turn on garbage collection for unused sections RISCV_LDFLAGS += -Wl,--gc-sections |