[PATCH v2 1/1] ld: microblaze: don't index the local symbol cache

Alan Modra amodra@gmail.com
Fri Aug 28 02:17:31 GMT 2026


On Wed, Aug 12, 2026 at 10:18:26PM -0400, Samuel Price wrote:
> bfd/
> 	* elf32-microblaze.c (microblaze_elf_relax_section): Skip
> 	relocations against global symbols when scanning the relocations
> 	of other sections.  Read only the local symbols, and fail rather
> 	than assert if they cannot be read.  Use PTR_ADD when computing
> 	the end of the local symbol buffer.  Remove a dead assignment to
> 	isym before the global symbol loop.
> 
> ld/
> 	* testsuite/ld-microblaze/microblaze.exp: New file.
> 	* testsuite/ld-microblaze/relax-addend.s: New file.
> 	* testsuite/ld-microblaze/relax-addend-support.s: New file.
> 	* testsuite/ld-microblaze/relax-addend.ld: New file.
> 	* testsuite/ld-microblaze/relax-addend.d: New test.
> 	* testsuite/ld-microblaze/relax-addend-data.d: New test.
> 	* testsuite/ld-microblaze/relax-addend-eh.s: New file.
> 	* testsuite/ld-microblaze/relax-addend-eh-support.s: New file.
> 	* testsuite/ld-microblaze/relax-addend-eh.ld: New file.
> 	* testsuite/ld-microblaze/relax-addend-eh.d: New test.

I was waiting for Michael to OK it, but since he hasn't responded one
way or another I've approved and applied this patch.

-- 
Alan Modra


More information about the Binutils mailing list