Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Micha Hoiting
GD32VF103_Firmware_Library
Commits
12b61d1b
Commit
12b61d1b
authored
Sep 27, 2019
by
Kongou Hikari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused _exit function
parent
8189c2de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Firmware/RISCV/stubs/_exit.c
Firmware/RISCV/stubs/_exit.c
+2
-1
Template/Makefile
Template/Makefile
+2
-2
No files found.
Firmware/RISCV/stubs/_exit.c
View file @
12b61d1b
...
...
@@ -4,7 +4,7 @@
#include "stub.h"
#if 0
void _exit(int code)
{
const char message[] = "\nProgram has exited with code:";
...
...
@@ -15,3 +15,4 @@ void _exit(int code)
for (;;);
}
#endif
Template/Makefile
View file @
12b61d1b
...
...
@@ -13,7 +13,7 @@ TARGET = gd32vf103
# debug build?
DEBUG
=
1
# optimization
OPT
=
-O2
OPT
=
-O2
#-flto
# Build path
BUILD_DIR
=
build
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment