arch/arm/toolchain: add --entry_std LDFLAGS for different toolchain

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao 2024-07-04 15:40:55 +08:00 committed by Xiang Xiao
parent d2ec034ada
commit 90a6ced9c1
1 changed files with 8 additions and 0 deletions

View File

@ -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)