From 35c9ed6a4b06e4d7c9bc0798e0b4b031b2cc237d Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Mon, 3 May 2021 12:39:11 -0400 Subject: [PATCH] arm64: don't create a section for z_arm64_exit_exc_fpu_done Both z_arm64_exit_exc and z_arm64_exit_exc_fpu_done must be within the same section as execution falls through here. If z_arm64_exit_exc_fpu_done creates a section of its own then the linker is free to disjoint the code and we absolutely don't want that. Signed-off-by: Nicolas Pitre --- arch/arm64/core/vector_table.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/core/vector_table.S b/arch/arm64/core/vector_table.S index efdcaf8424a..6da7affe033 100644 --- a/arch/arm64/core/vector_table.S +++ b/arch/arm64/core/vector_table.S @@ -217,7 +217,7 @@ SECTION_FUNC(TEXT, z_arm64_exit_exc) bl z_arm64_fpu_exit_exc GTEXT(z_arm64_exit_exc_fpu_done) - SECTION_FUNC(TEXT, z_arm64_exit_exc_fpu_done) + z_arm64_exit_exc_fpu_done: #endif ldp x0, x1, [sp, ___esf_t_spsr_elr_OFFSET]