From 138274e92a01be8a98392489b1a2f497ab11c201 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Sat, 1 Jun 2024 03:39:03 -0700 Subject: xtensa: add FDPIC support This change implements Xtensa FDPIC ABI as specified in the first version of the following document: https://github.com/jcmvbkbc/xtensa-abi/blob/master/fdpic-xtensa.txt Signed-off-by: Max Filippov --- libc/sysdeps/linux/xtensa/getcontext.S | 1 + 1 file changed, 1 insertion(+) (limited to 'libc/sysdeps/linux/xtensa/getcontext.S') diff --git a/libc/sysdeps/linux/xtensa/getcontext.S b/libc/sysdeps/linux/xtensa/getcontext.S index 7588a91b3..4cc644552 100644 --- a/libc/sysdeps/linux/xtensa/getcontext.S +++ b/libc/sysdeps/linux/xtensa/getcontext.S @@ -33,6 +33,7 @@ ENTRY(__getcontext) addi a4, a2, UCONTEXT_SIGMASK movi a2, SIG_BLOCK movi a5, JUMPTARGET (sigprocmask) + FDPIC_LOAD_JUMPTARGET (a5, a11, a5) jx a5 END(__getcontext) #elif defined(__XTENSA_WINDOWED_ABI__) -- cgit v1.2.3