[PATCH v2 05/20] hurd: Use the RETURN_ADDRESS macro
Sergey Bugaev
bugaevc@gmail.com
Sat Mar 23 17:32:46 GMT 2024
This gives us PAC stripping on AArch64.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
PAC is still not implemented on gnumach side, though.
sysdeps/mach/hurd/init-first.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/mach/hurd/init-first.c b/sysdeps/mach/hurd/init-first.c
index 22c35747..5777c44c 100644
--- a/sysdeps/mach/hurd/init-first.c
+++ b/sysdeps/mach/hurd/init-first.c
@@ -222,7 +222,7 @@ _hurd_stack_setup (void **argptr)
this may not be a valid pointer in case we're supposed to receive the
arguments from the exec server, so we can not dereference it yet. */
- void *caller = __builtin_extract_return_addr (__builtin_return_address (0));
+ void *caller = RETURN_ADDRESS (0);
/* Init the essential things. */
first_init ();
--
2.44.0
More information about the Libc-alpha
mailing list