diff options
author | John Darrington <john@darrington.wattle.id.au> | 2018-10-03 12:26:42 +0200 |
---|---|---|
committer | John Darrington <john@darrington.wattle.id.au> | 2018-10-23 16:09:30 +0200 |
commit | 2849d19feb458ade67cdcc6a82f0e7b1be99b46b (patch) | |
tree | ad7171222c73e3906dd555edd8c1568831928810 /include | |
parent | 405b61965ff7608840cfda36083c1be1f926ccdb (diff) | |
download | gdb-2849d19feb458ade67cdcc6a82f0e7b1be99b46b.zip gdb-2849d19feb458ade67cdcc6a82f0e7b1be99b46b.tar.gz gdb-2849d19feb458ade67cdcc6a82f0e7b1be99b46b.tar.bz2 |
S12Z: New 32 bit Reloc.
Third party tools produce 32 bit relocs at index 6 with strange properties.
This change moves the existing 32 bit reloc (R_S12Z_EXT32) to index 7
and introduces a new one (R_S12Z_CW32) at index 6 to try to support code
generated by these tools.
* bfd/elf32-s12z.c (elf_s12z_howto_table) [R_S12Z_CW32]: New member.
* binutils/readelf.c (is_32bit_abs_reloc): Reloc type 7 is also 32 bit.
* include/elf/s12z.h (elf_s12z_reloc_tpe) [RELOC_NUMBER (R_S12Z_CW32)]: New enum.
Diffstat (limited to 'include')
-rw-r--r-- | include/elf/s12z.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/elf/s12z.h b/include/elf/s12z.h index fc74b9a..f42fa11 100644 --- a/include/elf/s12z.h +++ b/include/elf/s12z.h @@ -30,7 +30,8 @@ START_RELOC_NUMBERS (elf_s12z_reloc_type) RELOC_NUMBER (R_S12Z_PCREL_7_15, 3) RELOC_NUMBER (R_S12Z_EXT24, 4) RELOC_NUMBER (R_S12Z_EXT18, 5) - RELOC_NUMBER (R_S12Z_EXT32, 6) + RELOC_NUMBER (R_S12Z_CW32, 6) + RELOC_NUMBER (R_S12Z_EXT32, 7) END_RELOC_NUMBERS (R_S12Z_max) #endif |