From 8414e86b42c02877219065f2214e603614513f26 Mon Sep 17 00:00:00 2001 From: Watson Zeng Date: Wed, 26 May 2021 15:39:58 +0800 Subject: [PATCH] arch: arc: _reset and _start section fix SECTION_FUNC allows only one function to reside in a sub-section SECTION_SUBSEC_FUNC allows multiple functions to reside in a sub-section we should use SECTION_SUBSEC_FUNC for _reset and _start Signed-off-by: Watson Zeng --- arch/arc/core/reset.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arc/core/reset.S b/arch/arc/core/reset.S index a622ec60796..e9b7caefeec 100644 --- a/arch/arc/core/reset.S +++ b/arch/arc/core/reset.S @@ -44,8 +44,8 @@ GTEXT(__start) * @return N/A */ -SECTION_FUNC(TEXT,__reset) -SECTION_FUNC(TEXT,__start) +SECTION_SUBSEC_FUNC(TEXT,_reset_and__start,__reset) +SECTION_SUBSEC_FUNC(TEXT,_reset_and__start,__start) /* lock interrupts: will get unlocked when switch to main task * also make sure the processor in the correct status */