]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Use the RETURN_ADDRESS macro
authorSergey Bugaev <bugaevc@gmail.com>
Sat, 23 Mar 2024 17:32:46 +0000 (20:32 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 23 Mar 2024 21:48:01 +0000 (22:48 +0100)
This gives us PAC stripping on AArch64.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-ID: <20240323173301.151066-6-bugaevc@gmail.com>

sysdeps/mach/hurd/init-first.c

index 22c357474ad16039c9717fa518275460ffb2720e..5777c44c37758c15fea29047a237cd7f185733bb 100644 (file)
@@ -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 ();