]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Support linkmap offsets for the AAPCS64-CAP ABI
authorLuis Machado <luis.machado@linaro.org>
Fri, 20 Aug 2021 11:19:04 +0000 (08:19 -0300)
committerLuis Machado <luis.machado@linaro.org>
Thu, 2 Sep 2021 18:56:22 +0000 (15:56 -0300)
commit7b0fc424b03433de0c32b677741dd263d2b7ece7
tree13a8499435ad4edf305c33d6504071ee3d5edd99
parent98624224553c3c9c8e4d654880d34adf06f2ce80
Support linkmap offsets for the AAPCS64-CAP ABI

With the AAPCS64-CAP ABI, any pointers in data structures become capabilities.
Capabilities for Morello are 128-bit in size, so the offsets of individual
fields within the structure might change.

One such structure that needs to be adjusted is the linkmap. The linkmap is
used by GDB to list shared libraries that get loaded/unloaded.

This patch enables AAPCS64-CAP linkmap offsets for both GDB and GDBserver,
allowing GDB/GDBserver to list the shared libraries correctly.
gdb/aarch64-linux-tdep.c
gdb/solib-svr4.c
gdb/solib-svr4.h
gdbserver/linux-aarch64-low.cc
gdbserver/linux-low.cc
gdbserver/linux-low.h