cris: dynobj mach

Hans-Peter Nilsson hp@bitrange.com
Mon May 11 15:21:40 GMT 2026


On Mon, 11 May 2026, Alan Modra wrote:
> A comment in cris check_relocs bemoans not being able to access the
> output bfd in adjust_dynamic_symbol.  A little over three years after
> the comment was written, commit f13a99db51c0 gave that access.  So
> let's make use of it and remove a restriction.
> 
> 	* elf32-cris.c (elf_cris_adjust_dynamic_symbol): Get mach from
> 	output bfd, not dynobj.
> 	(cris_elf_check_relocs): Remove dynobj mach check.

For those so interested: regarding utility, this is now fuzzer 
land.  If someone outside binutils testing ever does dynamic 
linking, I'll raise my eyebrows.  Though, that's certainly not a 
reason to leave the code as is.

It removes a headscratcher (requiring git investigation as you 
most likely did) and makes the code shorter, so absolutely, 
thanks!

brgds, H-P


More information about the Binutils mailing list