Add back non-solaris ELF targets to solaris config

Alan Modra amodra@gmail.com
Sat Dec 20 11:50:17 GMT 2025
On Sat, Dec 20, 2025 at 03:23:00PM +1030, Alan Modra wrote:
> This reverses some of the changes made in config.bfd for PR 27666.
> Removing targets for that PR was really just a workaround, and since
> the underlying bug is now fixed they can be added back.
> 
> I chose to add the non-solaris ELF targets to the linker config using
> targ_extra_emuls rather than targ_extra_libpath because someone using
> the elf32_sparc emulation probably doesn't want to pick up solaris
> libraries by accident.
> 
> It's a demonstration of what can be done rather than what should be
> done.  I don't intend to commit this change as I may not be aware of 
> other reasons to remove these targets besides pr27666.  In any case,
> users can add these targets back if they wish with eg.
> --target=sparc64-sun-solaris2.11 \
> --enable-targets="sparc64-elf,sparc-elf"

Oh, then there is pr33374, which seems to require this patch due to
silliness in libtool.m4.  OK, I'm committing it.

-- 
Alan Modra


More information about the Binutils mailing list