Landing: a639e0adaf2d
Project / Subsystem
binutils / ld
Date
2026-08-28
Author
Alan Modra <amodra@sourceware.org>
Commit
a639e0adaf2dc8f0bcb2b55715e7abebbe39bc7f
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- ld
- patch_id
- —
- commit_hash
- a639e0adaf2dc8f0bcb2b55715e7abebbe39bc7f
- source_type
- public_inbox
- headline
- ld: microblaze: Prevent out-of-bounds read in relax_section
- tldr
- Fixes microblaze linker relaxation by preventing an out-of-bounds read from the local symbol cache.
- author
- Alan Modra <amodra@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • microblaze
- • linker
- • bugfix
- • relaxation
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-28T00:00:00.000Z
This commit corrects a bug in the microblaze linker’s section relaxation process that caused an out-of-bounds read from the local symbol cache. The issue stemmed from a copied function missing a bounds check present in the original. This error could silently corrupt relocation addends, leading to miscompilations, particularly affecting structure member accesses after optimization. The fix restores the missing bounds check and adds new test cases to verify relocation addend integrity during relaxation.