diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2024-07-14 07:22:13 -0400 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2024-07-14 07:22:13 -0400 |
commit | a48e485c7c9d441baed9fca15ca17f229adad3e1 (patch) | |
tree | f833aba12643e22f3656e3f777da5f3da95b16ea /gdb/config/rs6000/tm-rs6000.h | |
parent | 7846287a38e2b996c2faa6b3319a8a83564e6b40 (diff) | |
download | gdb-a48e485c7c9d441baed9fca15ca17f229adad3e1.zip gdb-a48e485c7c9d441baed9fca15ca17f229adad3e1.tar.gz gdb-a48e485c7c9d441baed9fca15ca17f229adad3e1.tar.bz2 |
hppa: Fix handling of relocations that apply to data
Commit d125f9675372b1ae01ceb1893c06ccb27bc7bf22 introduced a bug
in handling relocations for data. The R_PARISC_DIR32 relocation
operates on 32-bit data and not instructions. The HOWTO table
needs to be used to determine the format of relocations that apply
to data. The R_PARISC_SEGBASE relocation is another special case
as it only changes segment base.
This was noticed in Debian cmor package build.
2024-07-14 John David Anglin <danglin@gcc.gnu.org>
bfd/ChangeLog:
* elf32-hppa.c (final_link_relocate): Use HOWTO table to
determine reload format for relocations that apply to data.
Diffstat (limited to 'gdb/config/rs6000/tm-rs6000.h')
0 files changed, 0 insertions, 0 deletions