Skip to content

Commit

Permalink
greenhills: fix the arch_setjmp.S build error
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
extinguish authored and acassis committed Aug 11, 2024
1 parent 693e869 commit ed9d57b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/libc/machine/arm/gnu/arch_setjmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
.globl setjmp
.globl longjmp

#ifndef __ghs__
.syntax unified
#endif
.file "setjmp.S"

/****************************************************************************
Expand Down Expand Up @@ -59,7 +61,12 @@
*
****************************************************************************/

#ifndef __ghs__
.type setjmp, function
#else
.type setjmp, $function
#endif

setjmp:

/* Store callee-saved Core registers */
Expand Down Expand Up @@ -121,7 +128,11 @@ setjmp:
*
****************************************************************************/

#ifndef __ghs__
.type longjmp, function
#else
.type longjmp, $function
#endif
longjmp:

/* Load callee-saved Core registers */
Expand Down

0 comments on commit ed9d57b

Please sign in to comment.