diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-04-15 17:40:45 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-06-12 14:34:39 +0100 |
commit | a8aad403a6d9e4904a5699ebd4c26424ab105076 (patch) | |
tree | 173554f292f353dd3c6e221582edb9abedbff48f /sysdeps/arm/sys | |
parent | f70dbaf7a1d2664fbed2cdcf6a3da40c37a442c0 (diff) | |
download | glibc-a8aad403a6d9e4904a5699ebd4c26424ab105076.tar.gz glibc-a8aad403a6d9e4904a5699ebd4c26424ab105076.tar.xz glibc-a8aad403a6d9e4904a5699ebd4c26424ab105076.zip |
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/95891: __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.
Diffstat (limited to 'sysdeps/arm/sys')
0 files changed, 0 insertions, 0 deletions