Remove 32-bit-only Solaris configurations

Message ID yddik71d7q7.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers
Series Remove 32-bit-only Solaris configurations |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_binutils_build--master-arm fail Patch failed to apply

Commit Message

Rainer Orth June 29, 2026, 9:19 a.m. UTC
  After the removal of all Solaris configurations but Solaris 10/11
(*-*-solaris2.1[01]), the 32-bit-only configurations can no longer be
matched.  This patch removes them.

Tested on {amd64,i386}-pc-solaris2.11 and sparc{v9,}-sun-solaris2.11.

Ok for trunk.

I thought about obsoleting Solaris 10, too, because it's no longer
tested.  However, AFAICS there's no Solaris 10-specific code or
workaround present.  I've also checked that trunk still builds on
Solaris 10, unlike Solaris 8 and 9 which already didn't build before
their removal, so such an obsoletion would gain nothing.

	Rainer
  

Comments

Jan Beulich June 29, 2026, 9:59 a.m. UTC | #1
On 29.06.2026 11:19, Rainer Orth wrote:
> After the removal of all Solaris configurations but Solaris 10/11
> (*-*-solaris2.1[01]), the 32-bit-only configurations can no longer be
> matched.  This patch removes them.
> 
> Tested on {amd64,i386}-pc-solaris2.11 and sparc{v9,}-sun-solaris2.11.
> 
> Ok for trunk.

Assuming this was a question: Yes.

Jan
  

Patch

# HG changeset patch
# Parent  d032e5cf7634d12dbad4f02e355bb01edc06ee48
Remove 32-bit-only Solaris configurations

diff --git a/bfd/config.bfd b/bfd/config.bfd
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -567,10 +567,6 @@  case "${targ}" in
     targ_selvecs="i386_elf32_vec x86_64_elf64_sol2_vec x86_64_elf64_vec"
     want64=true
     ;;
-  i[3-7]86-*-solaris*)
-    targ_defvec=i386_elf32_sol2_vec
-    targ_selvecs=i386_elf32_vec
-    ;;
   i[3-7]86-*-dicos* | i[3-7]86-*-dragonfly* |  i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-redox*)
     targ_defvec=i386_elf32_vec
     targ64_selvecs="x86_64_elf64_vec"
@@ -1268,10 +1264,6 @@  case "${targ}" in
     targ_defvec=sparc_elf32_vxworks_vec
     targ_selvecs="sparc_elf32_vec"
     ;;
-  sparc*-*-solaris*)
-    targ_defvec=sparc_elf32_sol2_vec
-    targ_selvecs=sparc_elf32_vec
-    ;;
   sparc*-*-*)
     targ_defvec=sparc_elf32_vec
     ;;
diff --git a/ld/configure.tgt b/ld/configure.tgt
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -369,10 +369,6 @@  i[3-7]86-*-solaris2*)
 			targ64_extra_libpath=elf_x86_64_sol2
 			targ64_extra_emuls=elf_x86_64
 			;;
-i[3-7]86-*-solaris*)
-			targ_emul=elf_i386_sol2
-			targ_extra_emuls=elf_i386
-			;;
 i[3-7]86-*-netbsd* | \
 i[3-7]86-*-netbsd*-gnu* | \
 i[3-7]86-*-knetbsd*-gnu | \
@@ -898,10 +894,6 @@  sparc-*-solaris2*)
 			targ64_extra_libpath=elf64_sparc_sol2
 			targ64_extra_emuls=elf64_sparc
 			;;
-sparc*-*-solaris*)
-			targ_emul=elf32_sparc_sol2
-			targ_extra_emuls=elf32_sparc
-			;;
 sparc*-*-vxworks*)	targ_emul=elf32_sparc_vxworks
 			;;
 sparc*-*-*)		targ_emul=elf32_sparc