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 <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao 2024-07-22 14:42:30 +08:00 committed by Alan Carvalho de Assis
parent 693e869404
commit ed9d57b501

View File

@ -31,7 +31,9 @@
.globl setjmp .globl setjmp
.globl longjmp .globl longjmp
#ifndef __ghs__
.syntax unified .syntax unified
#endif
.file "setjmp.S" .file "setjmp.S"
/**************************************************************************** /****************************************************************************
@ -59,7 +61,12 @@
* *
****************************************************************************/ ****************************************************************************/
#ifndef __ghs__
.type setjmp, function .type setjmp, function
#else
.type setjmp, $function
#endif
setjmp: setjmp:
/* Store callee-saved Core registers */ /* Store callee-saved Core registers */
@ -121,7 +128,11 @@ setjmp:
* *
****************************************************************************/ ****************************************************************************/
#ifndef __ghs__
.type longjmp, function .type longjmp, function
#else
.type longjmp, $function
#endif
longjmp: longjmp:
/* Load callee-saved Core registers */ /* Load callee-saved Core registers */