Skip to content

Commit

Permalink
Remove unused _exit function
Browse files Browse the repository at this point in the history
  • Loading branch information
Kongou Hikari committed Sep 27, 2019
1 parent 8189c2d commit 12b61d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Firmware/RISCV/stubs/_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "stub.h"


#if 0
void _exit(int code)
{
const char message[] = "\nProgram has exited with code:";
Expand All @@ -15,3 +15,4 @@ void _exit(int code)

for (;;);
}
#endif
4 changes: 2 additions & 2 deletions Template/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TARGET = gd32vf103
# debug build?
DEBUG = 1
# optimization
OPT = -O2
OPT = -O2 #-flto

# Build path
BUILD_DIR = build
Expand Down Expand Up @@ -103,7 +103,7 @@ LDSCRIPT = $(FIRMWARE_DIR)/RISCV/env_Eclipse/GD32VF103x8.lds
# libraries
#LIBS = -lc_nano -lm
LIBDIR =
LDFLAGS = -flto $(ARCH) -T$(LDSCRIPT) $(LIBDIR) $(LIBS) $(PERIFLIB_SOURCES) -Wl,--cref -Wl,--no-relax -Wl,--gc-sections -Wl,-M=$(BUILD_DIR)/$(TARGET).map -nostartfiles #-ffreestanding -nostdlib
LDFLAGS = $(OPT) $(ARCH) -T$(LDSCRIPT) $(LIBDIR) $(LIBS) $(PERIFLIB_SOURCES) -Wl,--cref -Wl,--no-relax -Wl,--gc-sections -Wl,-M=$(BUILD_DIR)/$(TARGET).map -nostartfiles #-ffreestanding -nostdlib

# default action: build all
all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
Expand Down

0 comments on commit 12b61d1

Please sign in to comment.