mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Makefile: link with -nostartfiles
This saves a bit more space and a reasonable thing to do since a custom startup is used anyway. Build-tested only. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
parent
76f4f31cf3
commit
941b42a269
2 changed files with 1 additions and 2 deletions
1
Makefile
1
Makefile
|
@ -366,6 +366,7 @@ ASFLAGS = $(ARCH_FLAGS) \
|
||||||
|
|
||||||
# XXX Map/crossref output?
|
# XXX Map/crossref output?
|
||||||
LDFLAGS = -lm \
|
LDFLAGS = -lm \
|
||||||
|
-nostartfiles \
|
||||||
$(ARCH_FLAGS) \
|
$(ARCH_FLAGS) \
|
||||||
$(LTO_FLAGS) \
|
$(LTO_FLAGS) \
|
||||||
$(DEBUG_FLAGS) \
|
$(DEBUG_FLAGS) \
|
||||||
|
|
|
@ -99,8 +99,6 @@ LoopFillZerobss:
|
||||||
|
|
||||||
/* Call the clock system intitialization function.*/
|
/* Call the clock system intitialization function.*/
|
||||||
bl SystemInit
|
bl SystemInit
|
||||||
/* Call static constructors */
|
|
||||||
bl __libc_init_array
|
|
||||||
/* Call the application's entry point.*/
|
/* Call the application's entry point.*/
|
||||||
bl main
|
bl main
|
||||||
/* Atollic update, branch LoopForever */
|
/* Atollic update, branch LoopForever */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue