summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc/sysdep.h
diff options
context:
space:
mode:
authorDmitry Chestnykh <dm.chestnykh@gmail.com>2024-04-30 20:49:33 +0300
committerWaldemar Brodkorb <wbx@openadk.org>2024-04-30 19:52:54 +0200
commitc8d6b02d714251afc82157eabb8752fd0010030e (patch)
treea6e582bcdc4f10b00473a5ec89e76e62b7325507 /libc/sysdeps/linux/sparc/sysdep.h
parenta1e7b2cf7000ed7e1e7486f3ba4cc75a3c348dd2 (diff)
sparc: Fix incorrect sigreturn stub function implementation.
This function haven't have prologue/epilogue/cfi directives etc. Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/sparc/sysdep.h')
-rw-r--r--libc/sysdeps/linux/sparc/sysdep.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/sparc/sysdep.h b/libc/sysdeps/linux/sparc/sysdep.h
index c3897ec08..761d21454 100644
--- a/libc/sysdeps/linux/sparc/sysdep.h
+++ b/libc/sysdeps/linux/sparc/sysdep.h
@@ -17,6 +17,15 @@
C_LABEL(name) \
cfi_startproc;
+#define ENTRY_NOCFI(name) \
+ .align 4; \
+ .global C_SYMBOL_NAME(name); \
+ .type name, @function; \
+C_LABEL(name)
+
+#define END_NOCFI(name) \
+ .size name, . - name
+
#define END(name) \
cfi_endproc; \
.size name, . - name