summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYury Khrustalev <yury.khrustalev@arm.com>2025-09-09 15:15:29 +0100
committerYury Khrustalev <yury.khrustalev@arm.com>2025-09-15 09:47:41 +0100
commit9be489d77867dd2444ecc044a5f3049d1751ee85 (patch)
treedb49a4de19a958f9e16a17077a81987b44e8c431 /include
parent041151f4399ff0dcd200aa3fe4f745b28d67d71c (diff)
support: add check_mem_access function
Add check_mem_access(addr) function to check if memory at addr can be written or read returning false if memory is not accessible. This function changes signal handler for SIGSEGV and SIGBUS signals when it is called first, and it is not thread-safe. Co-authored-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/setjmp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/setjmp.h b/include/setjmp.h
index d2353be71b..4997d0d7d2 100644
--- a/include/setjmp.h
+++ b/include/setjmp.h
@@ -12,7 +12,7 @@ extern void ____longjmp_chk (__jmp_buf __env, int __val)
__attribute__ ((__noreturn__)) attribute_hidden;
extern void __longjmp_chk (sigjmp_buf env, int val)
- __attribute__ ((noreturn)) attribute_hidden;
+ __attribute__ ((noreturn));
/* The redirection in the installed header does not work with
libc_hidden_proto. */
#define longjmp __longjmp_chk