]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Adjust PCC bounds when calling a function by hand in AAPCS64-CAP
authorLuis Machado <luis.machado@linaro.org>
Wed, 1 Dec 2021 11:23:24 +0000 (08:23 -0300)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 22:59:24 +0000 (15:59 -0700)
commit7e3d91f8199006eedcb87b0a86c96a313c4d5f14
tree0c7a349f86dff1a1ea3ad6703f3e2d917f042eaf
parent1db97dc20b3ee93db3923314e213f452d2036b9f
Adjust PCC bounds when calling a function by hand in AAPCS64-CAP

For dynamically-linked binaries using the AAPCS64-CAP ABI, the PCC bounds for
distinct DSO's can be different, and that needs to be taken into account.

Since there isn't a good interface for GDB to fetch the precise bounds (the
.plt.got could be used for this, but doesn't contain data for symbols not
being used by the program), we use maximum bounds and the existing PCC
permissions.

This allows GDB to call functions by hand in AAPCS64-CAP mode.

Also, revert a previous change to do partial writes (lower 64 bits) of the
PCC, as this isn't needed anymore.
gdb/aarch64-tdep.c
gdb/regcache.c