binutils Newspaper
OCTOBER 6, 2026
microblaze — Proposed

microblaze: don't index the local symbol cache with a global symbol index

Patch fixes an out-of-bounds read in microblaze ELF relaxation by adding a missing bounds check.

Sam Price has submitted a patch to fix an issue in microblaze_elf_relax_section where a bounds check was dropped during a code copy, leading to an out-of-bounds read that could corrupt relocation addends. The patch reintroduces the missing guard, preventing silent miscompilations and ensuring data integrity, as confirmed by new test cases.

In the Thread 1 participant
  1. Sam Price proposer

    Submits a patch to fix an out-of-bounds read in microblaze ELF relaxation by reintroducing a missing bounds check.

    “microblaze_elf_relax_section() was copied from sh_elf_relax_delete_bytes() in 2009 (7ba29e2a41) but the copy dropped a bounds check that was already present in the sh original. This adds the missing two-line guard from bfd/elf32-sh.c:1227-1228, preventing an out-of-bounds read that silently corrupts relocation addends.”