From ed9d57b5012a1c1c26138a6783730526b3b7bf32 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Mon, 22 Jul 2024 14:42:30 +0800 Subject: [PATCH] greenhills: fix the arch_setjmp.S build error CC: bch/bchlib_read.c [asarm] (error #2067) machine/arm/gnu/arch_setjmp.S 34: unknown instruction .syntax unified --^ [asarm] (error #2230) machine/arm/gnu/arch_setjmp.S 62: bad directive .type setjmp , function -----------------^ [asarm] (error) errors during processing Signed-off-by: guoshichao --- libs/libc/machine/arm/gnu/arch_setjmp.S | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libs/libc/machine/arm/gnu/arch_setjmp.S b/libs/libc/machine/arm/gnu/arch_setjmp.S index cae0f259fe..77a26adfdd 100644 --- a/libs/libc/machine/arm/gnu/arch_setjmp.S +++ b/libs/libc/machine/arm/gnu/arch_setjmp.S @@ -31,7 +31,9 @@ .globl setjmp .globl longjmp +#ifndef __ghs__ .syntax unified +#endif .file "setjmp.S" /**************************************************************************** @@ -59,7 +61,12 @@ * ****************************************************************************/ +#ifndef __ghs__ .type setjmp, function +#else + .type setjmp, $function +#endif + setjmp: /* Store callee-saved Core registers */ @@ -121,7 +128,11 @@ setjmp: * ****************************************************************************/ +#ifndef __ghs__ .type longjmp, function +#else + .type longjmp, $function +#endif longjmp: /* Load callee-saved Core registers */