aboutsummaryrefslogtreecommitdiff
path: root/elf/reldep2.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2020-04-15 17:40:45 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-07-08 15:02:38 +0100
commitd174ec248d5b6bba3842f425f036495b682c313f (patch)
tree0e0c44233e52934f582c06498464cd91ccd46d0a /elf/reldep2.c
parentc94767712b06fd37e82d23f86d4d6e1c93948d8a (diff)
downloadglibc-d174ec248d5b6bba3842f425f036495b682c313f.tar
glibc-d174ec248d5b6bba3842f425f036495b682c313f.tar.gz
glibc-d174ec248d5b6bba3842f425f036495b682c313f.tar.bz2
glibc-d174ec248d5b6bba3842f425f036495b682c313f.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/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: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/reldep2.c')
0 files changed, 0 insertions, 0 deletions