2 * Copyright (C) 2016 Andes Technology, Inc.
3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6 /* This just does a tail-call to `__sigsetjmp (ARG, 1)'.
7 We cannot do it in C because it must be a tail-call, so frame-unwinding
8 in setjmp doesn't clobber the state restored by longjmp. */
15 /* Make a tail call to __sigsetjmp. */
17 /* Initialize $r2 as $gp value. */
18 sethi $r2, hi20(_GLOBAL_OFFSET_TABLE_-8)
19 ori $r2, $r2, lo12(_GLOBAL_OFFSET_TABLE_-4)
23 ! la $r3, __sigsetjmp@PLT
24 sethi $r3, hi20(HIDDEN_JUMPTARGET(__sigsetjmp)@PLT)
25 ori $r3, $r3, lo12(HIDDEN_JUMPTARGET(__sigsetjmp)@PLT)
30 la $r15, C_SYMBOL_NAME(__sigsetjmp)