Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/1] s390: Deprecate s390 32-bit target "s390-*"
@ 2026-04-23 12:00 Jens Remus
  2026-04-23 12:00 ` [PATCH v2 1/1] " Jens Remus
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jens Remus @ 2026-04-23 12:00 UTC (permalink / raw)
  To: binutils, gdb-patches, Nick Clifton, Ian Lance Taylor, Jeff Law,
	Jim Wilson, DJ Delorie, Alan Modra, Michael Meissner,
	Richard Sandiford, Jan Beulich, Andreas Krebbel, Andreas Arnez
  Cc: Jens Remus, Ilya Leoshkevich, Stefan Liebler

Linux Kernel 6.19 removed s390 32-bit compatibility support. [1]
Glibc 2.43 deprecated s390 32-bit [2] and will remove it with
Glibc 2.44 [3].  GCC 16 will deprecate s390 32-bit (compiler option
-m31) with the intent to remove it in a future release. [4]

This deprecates s390 32-bit (target "s390-*" and format "elf32-s390")
in the upcoming Binutils and GDB release with the intent to remove it
in a future release.

s390 32-bit deprecation/removal overview:
- Linux Kernel 6.19 (February 2026) removed s390 32-bit compat
- Glibc 2.43 (January 2026) deprecated s390 32-bit
- GCC 16 (expected April 2026) will deprecate s390 32-bit
- Glibc 2.44 (expected August 2026) will remove s390 32-bit
- Binutils 2.47 (expected August 2026) would deprecate s390 32-bit
- Binutils 2.48 (expected February 2027) would remove s390 32-bit
- GCC 17 (expected April 2027) would remove s390 32-bit

Removal of s390 32-bit support in Binutils could also be deferred to
Binutils 2.49 (expected August 2027) if that would be preferable, so
that Binutils removes it after GCC.

Note that the error is actually not issued during a toplevel configure,
as configure in bfd/ is actually deferred to make.  Should this be
improved, for instance by replicating commit 91fb2a9d47c5 ("Add code to
catch obsolete configurations ...") to configure.ac?

Changes in v2:
- Add likewise gdb/NEWS entry, as the deprecation/removal in also
  affects GDB.

Feedback is much appreciated!

[1]: Linux kernel 6.19 commit 8e0b986c59c6 ("s390: Remove compat support"),
     https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8e0b986c59c6
[2]: Glibc 2.43 commit 638d437dbf9c ("Deprecate s390-linux-gnu (31bit)"),
     https://sourceware.org/git/glibc.git?a=commitdiff;h=638d437dbf9c
[3]: Glibc 2.44 patch series "[PATCH 0/5] Remove s390-linux-gnu (31bit)",
     https://inbox.sourceware.org/libc-alpha/20260409085102.3475867-1-stli@linux.ibm.com/
[4]: GCC 16 commit 5886bb453a6a ("s390: Deprecate -m31"),
     https://gcc.gnu.org/git/gcc.git?h=5886bb453a6a

Thanks and regards,
Jens

Jens Remus (1):
  s390: Deprecate s390 32-bit target "s390-*"

 bfd/config.bfd |  1 +
 binutils/NEWS  |  8 ++++++++
 gdb/NEWS       | 13 +++++++++++++
 3 files changed, 22 insertions(+)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 1/1] s390: Deprecate s390 32-bit target "s390-*"
  2026-04-23 12:00 [PATCH v2 0/1] s390: Deprecate s390 32-bit target "s390-*" Jens Remus
@ 2026-04-23 12:00 ` Jens Remus
  2026-06-22 12:12 ` [PATCH v2 0/1] " Jens Remus
       [not found] ` <6c8ebd42-d0af-43c0-add9-6e9dc906f771@linux.ibm.com>
  2 siblings, 0 replies; 5+ messages in thread
From: Jens Remus @ 2026-04-23 12:00 UTC (permalink / raw)
  To: binutils, gdb-patches, Nick Clifton, Ian Lance Taylor, Jeff Law,
	Jim Wilson, DJ Delorie, Alan Modra, Michael Meissner,
	Richard Sandiford, Jan Beulich, Andreas Krebbel, Andreas Arnez
  Cc: Jens Remus, Ilya Leoshkevich, Stefan Liebler

The s390 32-bit target (s390-*) is deprecated and planned for removal
in a future release, along with the elf32-s390 target format.  Emit an
error for this target during configure, which can be overridden using
option --enable-obsolete.

Linux Kernel 6.19 removed s390 32-bit compatibility support. [1]
Glibc 2.43 deprecated s390 32-bit with the intent to remove it in a
future release. [2]
GCC 16 will deprecate s390 32-bit (compiler option -m31) with the intent
to remove it in a future release. [3]

The s390 64-bit target (s390x-*) remains supported.

[1]: Linux kernel 6.19 commit 8e0b986c59c6 ("s390: Remove compat support"),
     https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8e0b986c59c6
[2]: Glibc 2.43 commit 638d437dbf9c ("Deprecate s390-linux-gnu (31bit)"),
     https://sourceware.org/git/glibc.git?a=commitdiff;h=638d437dbf9c
[3]: GCC 16 commit 5886bb453a6a ("s390: Deprecate -m31"),
     https://gcc.gnu.org/git/gcc.git?h=5886bb453a6a

bfd/
	* config.bfd: Require --enable-obsolete to build s390 32-bit
	target "s390-*".

binutils/
	* NEWS: Deprecate s390 32-bit target "s390-*".

gdb/
	* NEWS: Deprecate s390 32-bit target "s390-*".

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
---

Notes (jremus):
    Changes in v2:
    - Add likewise gdb/NEWS entry.
    - Correct GNU ChangeLog in commit message.

 bfd/config.bfd |  1 +
 binutils/NEWS  |  8 ++++++++
 gdb/NEWS       | 13 +++++++++++++
 3 files changed, 22 insertions(+)

diff --git a/bfd/config.bfd b/bfd/config.bfd
index 9472a481f81c..2d00d07cdc8d 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -48,6 +48,7 @@ targ_underscore=no
 
 # Catch obsolete configurations.
 case $targ in
+ s390-* | \
  null)
     if test "x$enable_obsolete" != xyes; then
       echo "*** Configuration $targ is obsolete." >&2
diff --git a/binutils/NEWS b/binutils/NEWS
index 5ac0e8b78114..5e802fe0be8d 100644
--- a/binutils/NEWS
+++ b/binutils/NEWS
@@ -1,5 +1,13 @@
 -*- text -*-
 
+* The s390 32-bit target (s390-*) is deprecated and planned for removal in a
+  future release, along with the elf32-s390 target format.  configure emits
+  an error for this target, which can be overridden using --enable-obsolete.
+  Linux Kernel 6.19 removed s390 32-bit compatibility support.  Glibc 2.43
+  has and GCC 16 will deprecate s390 32-bit, both with the intent to remove
+  it in a future release.
+  The s390 64-bit target (s390x-*) remains supported.
+
 * Objdump and readelf now have a --debug-dir=<DIR> option which can be used to
   tell them where to find separate debug info files.
 
diff --git a/gdb/NEWS b/gdb/NEWS
index 6b5c2f6a46a3..ea2d2cac2964 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -72,12 +72,25 @@
   automatically set to UTF-8.  (Users can use the Windows 'chcp'
   command to change the output codepage of the console.)
 
+* The s390 32-bit target (s390-*) is deprecated and planned for
+  removal in a future release, along with the elf32-s390 target
+  format.  configure now emits an error for this target, which can be
+  overridden using --enable-obsolete.
+  Linux Kernel 6.19 removed s390 32-bit compatibility support.
+  Glibc 2.43 has and GCC 16 will deprecate s390 32-bit, both with
+  the intent to remove it in a future release.
+  The s390 64-bit target (s390x-*) remains supported.
+
 * New targets
 
 GNU/Linux/MicroBlaze (gdbserver) microblazeel-*linux*
 
 AArch64 MinGW                   aarch64-*-mingw*
 
+* Deprecated targets
+
+GNU/Linux/S390 32-bit		s390-*-*
+
 * New commands
 
 set local-environment
-- 
2.51.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/1] s390: Deprecate s390 32-bit target "s390-*"
  2026-04-23 12:00 [PATCH v2 0/1] s390: Deprecate s390 32-bit target "s390-*" Jens Remus
  2026-04-23 12:00 ` [PATCH v2 1/1] " Jens Remus
@ 2026-06-22 12:12 ` Jens Remus
       [not found] ` <6c8ebd42-d0af-43c0-add9-6e9dc906f771@linux.ibm.com>
  2 siblings, 0 replies; 5+ messages in thread
From: Jens Remus @ 2026-06-22 12:12 UTC (permalink / raw)
  To: Andreas Krebbel, Andreas Arnez
  Cc: binutils, gdb-patches, Nick Clifton, Ian Lance Taylor, Jeff Law,
	Jim Wilson, DJ Delorie, Alan Modra, Michael Meissner,
	Richard Sandiford, Jan Beulich, Ilya Leoshkevich, Stefan Liebler

On 4/23/2026 2:00 PM, Jens Remus wrote:
> Linux Kernel 6.19 removed s390 32-bit compatibility support. [1]
> Glibc 2.43 deprecated s390 32-bit [2] and will remove it with
> Glibc 2.44 [3].  GCC 16 will deprecate s390 32-bit (compiler option
> -m31) with the intent to remove it in a future release. [4]
> 
> This deprecates s390 32-bit (target "s390-*" and format "elf32-s390")
> in the upcoming Binutils and GDB release with the intent to remove it
> in a future release.

The Binutils 2.47 release is approaching, with the following planned
schedule:

  Create the branch:   Sat 11 July
  Create the release:  Sat 25 July

Andreas K., could you please approve for the Binutils s390 targets?
Andreas A. could then subsequently approve for the GDB s390 targets.

> 
> s390 32-bit deprecation/removal overview:
> - Linux Kernel 6.19 (February 2026) removed s390 32-bit compat
> - Glibc 2.43 (January 2026) deprecated s390 32-bit
> - GCC 16 (expected April 2026) will deprecate s390 32-bit
> - Glibc 2.44 (expected August 2026) will remove s390 32-bit
> - Binutils 2.47 (expected August 2026) would deprecate s390 32-bit
> - Binutils 2.48 (expected February 2027) would remove s390 32-bit
> - GCC 17 (expected April 2027) would remove s390 32-bit
> 
> Removal of s390 32-bit support in Binutils could also be deferred to
> Binutils 2.49 (expected August 2027) if that would be preferable, so
> that Binutils removes it after GCC.
> 
> Note that the error is actually not issued during a toplevel configure,
> as configure in bfd/ is actually deferred to make.  Should this be
> improved, for instance by replicating commit 91fb2a9d47c5 ("Add code to
> catch obsolete configurations ...") to configure.ac?
> 
> Changes in v2:
> - Add likewise gdb/NEWS entry, as the deprecation/removal in also
>   affects GDB.
> 
> Feedback is much appreciated!
> 
> [1]: Linux kernel 6.19 commit 8e0b986c59c6 ("s390: Remove compat support"),
>      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8e0b986c59c6
> [2]: Glibc 2.43 commit 638d437dbf9c ("Deprecate s390-linux-gnu (31bit)"),
>      https://sourceware.org/git/glibc.git?a=commitdiff;h=638d437dbf9c
> [3]: Glibc 2.44 patch series "[PATCH 0/5] Remove s390-linux-gnu (31bit)",
>      https://inbox.sourceware.org/libc-alpha/20260409085102.3475867-1-stli@linux.ibm.com/
> [4]: GCC 16 commit 5886bb453a6a ("s390: Deprecate -m31"),
>      https://gcc.gnu.org/git/gcc.git?h=5886bb453a6a
Thanks and regards,
Jens
-- 
Jens Remus
Linux on Z Development (D3303)
jremus@de.ibm.com / jremus@linux.ibm.com

IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Ehningen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/1] s390: Deprecate s390 32-bit target "s390-*"
       [not found] ` <6c8ebd42-d0af-43c0-add9-6e9dc906f771@linux.ibm.com>
@ 2026-07-06  9:00   ` Andreas Arnez
  2026-07-06 14:45     ` Jens Remus
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Arnez @ 2026-07-06  9:00 UTC (permalink / raw)
  To: Andreas Krebbel; +Cc: Jens Remus, binutils, GDB Patches

On Thu, Jul 02 2026, Andreas Krebbel wrote:

> Hi Jens,
>
> On 4/23/26 2:00 PM, Jens Remus wrote:
>> Linux Kernel 6.19 removed s390 32-bit compatibility support. [1]
>> Glibc 2.43 deprecated s390 32-bit [2] and will remove it with
>> Glibc 2.44 [3].  GCC 16 will deprecate s390 32-bit (compiler option
>> -m31) with the intent to remove it in a future release. [4]
>>
>> This deprecates s390 32-bit (target "s390-*" and format "elf32-s390")
>> in the upcoming Binutils and GDB release with the intent to remove it
>> in a future release.
>>
>> s390 32-bit deprecation/removal overview:
>> - Linux Kernel 6.19 (February 2026) removed s390 32-bit compat
>> - Glibc 2.43 (January 2026) deprecated s390 32-bit
>> - GCC 16 (expected April 2026) will deprecate s390 32-bit
>> - Glibc 2.44 (expected August 2026) will remove s390 32-bit
>> - Binutils 2.47 (expected August 2026) would deprecate s390 32-bit
>> - Binutils 2.48 (expected February 2027) would remove s390 32-bit
>> - GCC 17 (expected April 2027) would remove s390 32-bit
>>
>> Removal of s390 32-bit support in Binutils could also be deferred to
>> Binutils 2.49 (expected August 2027) if that would be preferable, so
>> that Binutils removes it after GCC.
> I think would be ok to require GCC users of a deprecated feature to use an
> older Binutils version.  I'm ok with dropping it with 2.48 already.
>>
>> Note that the error is actually not issued during a toplevel configure,
>> as configure in bfd/ is actually deferred to make.  Should this be
>> improved, for instance by replicating commit 91fb2a9d47c5 ("Add code to
>> catch obsolete configurations ...") to configure.ac?
> I don't think it is worth the trouble for something which will be removed
> soon anyway.
>
> Patch is ok. Thank you, Jens!
>
> Bye
>>
>> Changes in v2:
>> - Add likewise gdb/NEWS entry, as the deprecation/removal in also
>>    affects GDB.

This looks OK to me.

>>
>> Feedback is much appreciated!
>>
>> [1]: Linux kernel 6.19 commit 8e0b986c59c6 ("s390: Remove compat support"),
>>       https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8e0b986c59c6
>> [2]: Glibc 2.43 commit 638d437dbf9c ("Deprecate s390-linux-gnu (31bit)"),
>>       https://sourceware.org/git/glibc.git?a=commitdiff;h=638d437dbf9c
>> [3]: Glibc 2.44 patch series "[PATCH 0/5] Remove s390-linux-gnu (31bit)",
>>       https://inbox.sourceware.org/libc-alpha/20260409085102.3475867-1-stli@linux.ibm.com/
>> [4]: GCC 16 commit 5886bb453a6a ("s390: Deprecate -m31"),
>>       https://gcc.gnu.org/git/gcc.git?h=5886bb453a6a
>>
>> Thanks and regards,
>> Jens
>>
>> Jens Remus (1):
>>    s390: Deprecate s390 32-bit target "s390-*"
>>
>>   bfd/config.bfd |  1 +
>>   binutils/NEWS  |  8 ++++++++
>>   gdb/NEWS       | 13 +++++++++++++
>>   3 files changed, 22 insertions(+)
>>
>

-- 
Andreas

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/1] s390: Deprecate s390 32-bit target "s390-*"
  2026-07-06  9:00   ` Andreas Arnez
@ 2026-07-06 14:45     ` Jens Remus
  0 siblings, 0 replies; 5+ messages in thread
From: Jens Remus @ 2026-07-06 14:45 UTC (permalink / raw)
  To: Andreas Arnez, Andreas Krebbel; +Cc: binutils, GDB Patches

On 7/6/2026 11:00 AM, Andreas Arnez wrote:
> On Thu, Jul 02 2026, Andreas Krebbel wrote:
>> On 4/23/26 2:00 PM, Jens Remus wrote:
>>> Linux Kernel 6.19 removed s390 32-bit compatibility support. [1]
>>> Glibc 2.43 deprecated s390 32-bit [2] and will remove it with
>>> Glibc 2.44 [3].  GCC 16 will deprecate s390 32-bit (compiler option
>>> -m31) with the intent to remove it in a future release. [4]
>>>
>>> This deprecates s390 32-bit (target "s390-*" and format "elf32-s390")
>>> in the upcoming Binutils and GDB release with the intent to remove it
>>> in a future release.
>>>
>>> s390 32-bit deprecation/removal overview:
>>> - Linux Kernel 6.19 (February 2026) removed s390 32-bit compat
>>> - Glibc 2.43 (January 2026) deprecated s390 32-bit
>>> - GCC 16 (expected April 2026) will deprecate s390 32-bit
>>> - Glibc 2.44 (expected August 2026) will remove s390 32-bit
>>> - Binutils 2.47 (expected August 2026) would deprecate s390 32-bit
>>> - Binutils 2.48 (expected February 2027) would remove s390 32-bit
>>> - GCC 17 (expected April 2027) would remove s390 32-bit
>>>
>>> Removal of s390 32-bit support in Binutils could also be deferred to
>>> Binutils 2.49 (expected August 2027) if that would be preferable, so
>>> that Binutils removes it after GCC.
>> I think would be ok to require GCC users of a deprecated feature to use an
>> older Binutils version.  I'm ok with dropping it with 2.48 already.
>>>
>>> Note that the error is actually not issued during a toplevel configure,
>>> as configure in bfd/ is actually deferred to make.  Should this be
>>> improved, for instance by replicating commit 91fb2a9d47c5 ("Add code to
>>> catch obsolete configurations ...") to configure.ac?
>> I don't think it is worth the trouble for something which will be removed
>> soon anyway.
>>
>> Patch is ok. Thank you, Jens!

...

>>> Changes in v2:
>>> - Add likewise gdb/NEWS entry, as the deprecation/removal in also
>>>    affects GDB.
> 
> This looks OK to me.

...

Andreas², thank you for the review!  Committed to mainline with a
slightly updated commit message, binutils/NEWS, and gdb/NEWS (as
GCC 16.1 has meanwhile been released) for Binutils 2.47 and
next GDB releases.

>>> Feedback is much appreciated!
>>>
>>> [1]: Linux kernel 6.19 commit 8e0b986c59c6 ("s390: Remove compat support"),
>>>       https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8e0b986c59c6
>>> [2]: Glibc 2.43 commit 638d437dbf9c ("Deprecate s390-linux-gnu (31bit)"),
>>>       https://sourceware.org/git/glibc.git?a=commitdiff;h=638d437dbf9c
>>> [3]: Glibc 2.44 patch series "[PATCH 0/5] Remove s390-linux-gnu (31bit)",
>>>       https://inbox.sourceware.org/libc-alpha/20260409085102.3475867-1-stli@linux.ibm.com/
>>> [4]: GCC 16 commit 5886bb453a6a ("s390: Deprecate -m31"),
>>>       https://gcc.gnu.org/git/gcc.git?h=5886bb453a6a
>>>
>>> Thanks and regards,
>>> Jens
>>>
>>> Jens Remus (1):
>>>    s390: Deprecate s390 32-bit target "s390-*"
>>>
>>>   bfd/config.bfd |  1 +
>>>   binutils/NEWS  |  8 ++++++++
>>>   gdb/NEWS       | 13 +++++++++++++
>>>   3 files changed, 22 insertions(+)
Regards,
Jens
-- 
Jens Remus
Linux on Z Development (D3303)
jremus@de.ibm.com / jremus@linux.ibm.com

IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Ehningen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-06 14:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-23 12:00 [PATCH v2 0/1] s390: Deprecate s390 32-bit target "s390-*" Jens Remus
2026-04-23 12:00 ` [PATCH v2 1/1] " Jens Remus
2026-06-22 12:12 ` [PATCH v2 0/1] " Jens Remus
     [not found] ` <6c8ebd42-d0af-43c0-add9-6e9dc906f771@linux.ibm.com>
2026-07-06  9:00   ` Andreas Arnez
2026-07-06 14:45     ` Jens Remus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox