From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id B7C98385840D; Sat, 23 Mar 2024 22:16:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7C98385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711232196; bh=hpreQw6NX756huDn/MqLc/X+BU1pLO4KDn4P/tSjIgo=; h=From:To:Subject:Date:From; b=H3GeZo4mj+wW8eWxD00/N25BxXFjsnZBZkDoulFyJ+QM8otmHr2B9FojZPCpRA6mr Emqjpa+FugSpoa8ZfRaT+98222lFLGXBUW3gkOEXM3zzuVxZwWCpOkaTLpsqiPNcE9 AA0x4HZEYd8Tq4QetE3ObVfnl4i8ddbJzdxlXlL8= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Use the RETURN_ADDRESS macro X-Act-Checkin: glibc X-Git-Author: Sergey Bugaev X-Git-Refname: refs/heads/master X-Git-Oldrev: 6afeac1289b92bc893613cc9efc9b5c692369e64 X-Git-Newrev: b467cfcaee34452df845c678dd2ba36ea2221855 Message-Id: <20240323221636.B7C98385840D@sourceware.org> Date: Sat, 23 Mar 2024 22:16:36 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b467cfcaee34452df845c678dd2ba36ea2221855 commit b467cfcaee34452df845c678dd2ba36ea2221855 Author: Sergey Bugaev Date: Sat Mar 23 20:32:46 2024 +0300 hurd: Use the RETURN_ADDRESS macro This gives us PAC stripping on AArch64. Signed-off-by: Sergey Bugaev Message-ID: <20240323173301.151066-6-bugaevc@gmail.com> Diff: --- 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 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 ();