Skip to content
Commit d174ec24 authored by Szabolcs Nagy's avatar Szabolcs Nagy
Browse files

aarch64: redefine RETURN_ADDRESS to strip PAC



RETURN_ADDRESS is used at several places in glibc to mean a valid
code address of the call site, but with pac-ret it may contain a
pointer authentication code (PAC), so its definition is adjusted.

This is gcc PR target/94891: __builtin_return_address should not
expose signed pointers to user code where it can cause ABI issues.
In glibc RETURN_ADDRESS is only changed if it is built with pac-ret.
There is no detection for the specific gcc issue because it is
hard to test and the additional xpac does not cause problems.

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent c9476771
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment