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

Alan Modra <[email protected]>
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.