Landing: ab54f25e5e4b
Project / Subsystem
binutils / bfd
Date
2026-09-21
Author
Alan Modra <amodra@sourceware.org>
Commit
ab54f25e5e4bf9fae2c808ffe3b528e85ee4020d
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- bfd
- patch_id
- —
- commit_hash
- ab54f25e5e4bf9fae2c808ffe3b528e85ee4020d
- source_type
- public_inbox
- headline
- pru UB: left shift of negative value
- tldr
- Fixes undefined behavior in PRU ELF relocation by ensuring non-negative shift counts.
- author
- Alan Modra <amodra@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • pru
- • elf
- • relocation
- • ub
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-21T00:00:00.000Z
This change addresses undefined behavior in the PRU ELF relocation logic where a signed left shift of a negative value could occur. The modification ensures that the shift operation is performed on a non-negative value, preventing potential runtime errors and incorrect calculations.