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

View File

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