Landing: fb66599b4d0b

Project / Subsystem

binutils / bfd/elf

Date

2026-07-12

Author

Alan Modra <amodra@sourceware.org>

Commit

fb66599b4d0b97fc14242f3c7a6f04a5821ca36a

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
bfd/elf
patch_id
commit_hash
fb66599b4d0b97fc14242f3c7a6f04a5821ca36a
source_type
public_inbox
headline
bfd/ELF: Fold GOTOFF relocations for FRV and LM32
tldr
Consolidates GOTOFF relocation types in BFD for FRV and LM32, simplifying code and maintaining compatibility.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • binutils
  • bfd
  • elf
  • relocation
  • frv
discussion_id_link
bugzilla_pr
date
2026-07-12T00:00:00.000Z

This commit refactors the handling of GOTOFF relocations in the BFD library for FRV and LM32 architectures. It folds specific architecture-dependent GOTOFF relocations into more generic types (e.g., BFD_RELOC_FRV_GOTOFFLO to BFD_RELOC_LO16_GOTOFF), reducing code duplication and simplifying the relocation management. This change ensures that generated files in opcodes/ are consistent, preventing build breakage when these files are regenerated.