Landing: 192a958f5725
Project / Subsystem
binutils / bfd
Date
2026-07-07
Author
Alan Modra <amodra@sourceware.org>
Commit
192a958f5725c0f5a0338ceb9de580b540db6adb
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- bfd
- patch_id
- —
- commit_hash
- 192a958f5725c0f5a0338ceb9de580b540db6adb
- source_type
- public_inbox
- headline
- Avoid UB and division by zero in reloc handling for alpha, rl78, rx
- tldr
- Binutils fixes undefined behavior and division by zero in relocation handling for alpha, rl78, and rx architectures.
- author
- Alan Modra <amodra@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • binutils
- • bfd
- • relocation
- • undefined behavior
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-07T00:00:00.000Z
Binutils has corrected undefined behavior and potential division-by-zero errors within the relocation handling logic for Alpha, RL78, and RX architectures. The changes involve carefully managing arithmetic operations, particularly right shifts, division, and modulo, by adding checks for shift amounts and using unsigned arithmetic where appropriate to ensure defined overflow behavior. This improves the robustness and correctness of the relocation process for these architectures.