binutils Newspaper
JUNE 15, 2026
bfd/mn10300 Proposed

Bfd/mn10300: Drop BFD_RELOC_MN10300_*_PCREL

Removes unused PC-relative relocation enumerators for the mn10300 architecture in the Binary File Descriptor (BFD) library.

This patch removes unused PC-relative relocation enumerators (BFD_RELOC_MN10300_*_PCREL) from the mn10300 backend of the BFD library. These enumerators are not currently used. Removing them cleans up the code and reduces the potential for confusion.

In the Thread 1 participant
  1. Alexandre Oliva <oliva@gnu.org> proposer

    Agrees to drop the unused PC-relative relocation enumerators.

    “Ok, thanks”

In Details

The BFD library uses relocation enumerators to describe how to adjust addresses in object files during linking. This patch removes unused PC-relative relocation enumerators specific to the mn10300 architecture. These relocations are relative to the Program Counter (PC).

For Context

The Binary File Descriptor (BFD) library provides a uniform interface for manipulating different object file formats. Relocations are adjustments applied to addresses within object files or executables during linking or loading, to account for the final memory location of code and data. PC-relative relocations calculate addresses relative to the current instruction's location. This patch removes definitions for PC-relative fixups that are no longer used for the mn10300 architecture.

Filed Under: bfdrelocationmn10300code cleanup