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)
|
ARCHCPUFLAGS := $(TOOLCHAIN_CLANG_OPTION) $(TOOLCHAIN_CLANG_CONFIG).cfg $(ARCHCPUFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
LDFLAGS += --entry=__start
|
||||||
|
|
||||||
# ARM Compiler Clang toolchain
|
# ARM Compiler Clang toolchain
|
||||||
|
|
||||||
else ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y)
|
else ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y)
|
||||||
|
@ -247,6 +249,8 @@ else ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y)
|
||||||
|
|
||||||
LDFLAGS += --diag_suppress=6329
|
LDFLAGS += --diag_suppress=6329
|
||||||
|
|
||||||
|
LDFLAGS += --entry=__start
|
||||||
|
|
||||||
else ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
|
else ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
|
||||||
CC = ccarm
|
CC = ccarm
|
||||||
CXX = cxarm
|
CXX = cxarm
|
||||||
|
@ -259,6 +263,8 @@ else ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
|
||||||
GMEMFILE = gmemfile
|
GMEMFILE = gmemfile
|
||||||
OBJDUMP = gdump
|
OBJDUMP = gdump
|
||||||
|
|
||||||
|
LDFLAGS += -entry=__start
|
||||||
|
|
||||||
# Default toolchain
|
# Default toolchain
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -296,6 +302,8 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
LDFLAGS += --entry=__start
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
|
ifeq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
|
||||||
|
|
Loading…
Reference in New Issue