[v2,4/6] bfd/Sparc: drop 64-bit BFD_RELOC_* aliases
Checks
| Context |
Check |
Description |
| linaro-tcwg-bot/tcwg_binutils_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_binutils_check--master-arm |
success
|
Test passed
|
Commit Message
For other relocations (e.g. BFD_RELOC_{8,16,32}{,_PCREL} or
BFD_RELOC_32_PCREL_S2) the generic enumerator is used. Plus use of such
aliases obfuscates where the generic types are actually in use.
---
This was approved by Jose, but I didn't want to re-order the series to get
this in ahead of what needed some more work.
@@ -3414,7 +3414,6 @@ enum bfd_reloc_code_real
BFD_RELOC_SPARC_BASE22,
/* SPARC64 relocations. */
-#define BFD_RELOC_SPARC_64 BFD_RELOC_64
BFD_RELOC_SPARC_10,
BFD_RELOC_SPARC_11,
BFD_RELOC_SPARC_OLO10,
@@ -3429,7 +3428,6 @@ enum bfd_reloc_code_real
BFD_RELOC_SPARC_7,
BFD_RELOC_SPARC_6,
BFD_RELOC_SPARC_5,
-#define BFD_RELOC_SPARC_DISP64 BFD_RELOC_64_PCREL
BFD_RELOC_SPARC_HIX22,
BFD_RELOC_SPARC_LOX10,
BFD_RELOC_SPARC_H44,
@@ -396,7 +396,7 @@ _bfd_sparc_elf_reloc_type_lookup (bfd *a
case BFD_RELOC_SPARC_11:
return &_bfd_sparc_elf_howto_table[R_SPARC_11];
- case BFD_RELOC_SPARC_64:
+ case BFD_RELOC_64:
return &_bfd_sparc_elf_howto_table[R_SPARC_64];
case BFD_RELOC_SPARC_OLO10:
@@ -435,7 +435,7 @@ _bfd_sparc_elf_reloc_type_lookup (bfd *a
case BFD_RELOC_SPARC_6:
return &_bfd_sparc_elf_howto_table[R_SPARC_6];
- case BFD_RELOC_SPARC_DISP64:
+ case BFD_RELOC_64_PCREL:
return &_bfd_sparc_elf_howto_table[R_SPARC_DISP64];
case BFD_RELOC_64_PLT_PCREL:
@@ -1630,10 +1630,7 @@ ENUMX
ENUMDOC
I think these are specific to SPARC a.out (e.g., Sun 4).
-ENUMEQ
- BFD_RELOC_SPARC_64
- BFD_RELOC_64
-ENUMX
+ENUM
BFD_RELOC_SPARC_10
ENUMX
BFD_RELOC_SPARC_11
@@ -1661,9 +1658,6 @@ ENUMX
BFD_RELOC_SPARC_6
ENUMX
BFD_RELOC_SPARC_5
-ENUMEQX
- BFD_RELOC_SPARC_DISP64
- BFD_RELOC_64_PCREL
ENUMX
BFD_RELOC_SPARC_HIX22
ENUMX