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:
Paul Fertser 2014-07-19 23:15:50 +04:00 committed by Dominic Clifton
parent 76f4f31cf3
commit 941b42a269
2 changed files with 1 additions and 2 deletions

View File

@ -366,6 +366,7 @@ ASFLAGS = $(ARCH_FLAGS) \
# XXX Map/crossref output?
LDFLAGS = -lm \
-nostartfiles \
$(ARCH_FLAGS) \
$(LTO_FLAGS) \
$(DEBUG_FLAGS) \

View File

@ -99,8 +99,6 @@ LoopFillZerobss:
/* Call the clock system intitialization function.*/
bl SystemInit
/* Call static constructors */
bl __libc_init_array
/* Call the application's entry point.*/
bl main
/* Atollic update, branch LoopForever */