about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2024-03-23 20:32:46 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-03-23 22:48:01 +0100
commitb467cfcaee34452df845c678dd2ba36ea2221855 (patch)
treeb1b64b65e5386c9719b169bb7d9ba2f0eaa8ca04
parent6afeac1289b92bc893613cc9efc9b5c692369e64 (diff)
downloadglibc-b467cfcaee34452df845c678dd2ba36ea2221855.tar.gz
glibc-b467cfcaee34452df845c678dd2ba36ea2221855.tar.xz
glibc-b467cfcaee34452df845c678dd2ba36ea2221855.zip
hurd: Use the RETURN_ADDRESS macro
This gives us PAC stripping on AArch64.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-ID: <20240323173301.151066-6-bugaevc@gmail.com>
-rw-r--r--sysdeps/mach/hurd/init-first.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/init-first.c b/sysdeps/mach/hurd/init-first.c
index 22c357474a..5777c44c37 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 ();