arch/arm/toolchain: add --entry_std LDFLAGS for different toolchain
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
d2ec034ada
commit
90a6ced9c1
@ -205,6 +205,8 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
|
||||
ARCHCPUFLAGS := $(TOOLCHAIN_CLANG_OPTION) $(TOOLCHAIN_CLANG_CONFIG).cfg $(ARCHCPUFLAGS)
|
||||
endif
|
||||
|
||||
LDFLAGS += --entry=__start
|
||||
|
||||
# ARM Compiler Clang toolchain
|
||||
|
||||
else ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y)
|
||||
@ -247,6 +249,8 @@ else ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y)
|
||||
|
||||
LDFLAGS += --diag_suppress=6329
|
||||
|
||||
LDFLAGS += --entry=__start
|
||||
|
||||
else ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
|
||||
CC = ccarm
|
||||
CXX = cxarm
|
||||
@ -259,6 +263,8 @@ else ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
|
||||
GMEMFILE = gmemfile
|
||||
OBJDUMP = gdump
|
||||
|
||||
LDFLAGS += -entry=__start
|
||||
|
||||
# Default toolchain
|
||||
|
||||
else
|
||||
@ -296,6 +302,8 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
LDFLAGS += --entry=__start
|
||||
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
|
||||
|
Loading…
Reference in New Issue
Block a user