[PATCH 0/8] bfd: another little bit of reloc enum cleanup

Jan Beulich jbeulich@suse.com
Sun Mar 15 10:46:46 GMT 2026


On 13.03.2026 18:36, Jens Remus wrote:
> On 3/13/2026 10:48 AM, Jan Beulich wrote:
>> There are still some unused and many redundant entries.
>>
>> 1: mcore: drop BFD_RELOC_MCORE_{PCREL_32,RVA}
>> 2: mn10300: drop BFD_RELOC_MN10300_*_PCREL
>> 3: sh: drop unused relocation enumerators
>> 4: ELF: fold BFD_RELOC_<arch>_GOTOFF*
>> 5: s390+sh: don't abuse BFD_RELOC_32_GOT_PCREL
>> 6: ELF: fold BFD_RELOC_<arch>_GOTPC*
>> 7: Sparc: drop 64-bit BFD_RELOC_* aliases
>> 8: ELF: fold BFD_RELOC_<arch>_PCREL*
> 
> IIUC - provided all of those changes are non-API breaking - similar
> could be done to fold R_390_PLTOFF16, R_390_PLTOFF32 R_390_PLTOFF64 into
> BFD_RELOC_*_PLTOFF?  Or is the semantic different?

Quite likely more folding is indeed possible. Just requires more time ...

Jan


More information about the Binutils mailing list