[PATCH 0/5] SFrames: allow default-enabling via configure

Sam James sam@gentoo.org
Fri Aug 15 14:56:46 GMT 2025


This brings --enable-default-sframe to gas's configure to facilitate
distributions shipping SFrames. The main work is conditionalising warnings
and errors (see commit messages for rationale).

Thanks to Indu for providing review of some earlier, unposted revisions
off-list.

The final two patches aren't intended to be merged:
* 'gas: default-enable SFrames for x86_64-*-linux-* [NOMERGE]' is obvious
  and just there for testing/convenience.

* 'gas: TODO wrt enable-default-sframe vs unsupported targets' is requesting
  some feedback/ideas.

Sam James (5):
  gas: add --enable-default-sframe configure option
  gas: disable SFrame warnings if default-enabled
  binutils, gas, ld: Disable SFrames for some tests
  gas: default-enable SFrames for x86_64-*-linux-* [NOMERGE]
  gas: TODO wrt enable-default-sframe vs unsupported targets

 .../binutils-all/x86-64/compressed-1b.d       |  2 +-
 .../binutils-all/x86-64/compressed-1c.d       |  2 +-
 gas/as.c                                      |  8 ++-
 gas/config.in                                 |  3 +
 gas/configure                                 | 31 +++++++++-
 gas/configure.ac                              | 24 ++++++++
 gas/doc/as.texi                               |  3 +-
 gas/dw2gencfi.c                               |  7 ++-
 gas/gen-sframe.c                              | 60 ++++++++++---------
 gas/gen-sframe.h                              | 18 ++++++
 gas/testsuite/gas/cfi/cfi-common-1.d          |  1 +
 gas/testsuite/gas/cfi/cfi-common-2.d          |  1 +
 gas/testsuite/gas/cfi/cfi-common-3.d          |  1 +
 gas/testsuite/gas/cfi/cfi-common-4.d          |  1 +
 gas/testsuite/gas/cfi/cfi-common-5.d          |  1 +
 gas/testsuite/gas/cfi/cfi-common-6.d          |  1 +
 gas/testsuite/gas/cfi/cfi-common-7.d          |  1 +
 gas/testsuite/gas/cfi/cfi-common-8.d          |  1 +
 gas/testsuite/gas/cfi/cfi-label.d             |  2 +-
 gas/testsuite/gas/cfi/cfi-x86_64.d            |  2 +-
 gas/testsuite/gas/cfi/cfi.exp                 |  2 +-
 gas/testsuite/gas/i386/ehinterp.d             |  1 +
 .../gas/scfi/x86_64/scfi-cfi-label-1.d        |  3 +-
 gas/testsuite/gas/scfi/x86_64/scfi-x86-64.exp |  2 +-
 ld/testsuite/ld-elf/eh5.d                     |  1 +
 ld/testsuite/ld-sframe/sframe-empty.d         |  2 +-
 ld/testsuite/ld-x86-64/ibt-plt-2a.d           |  2 +-
 ld/testsuite/ld-x86-64/ibt-plt-2b.d           |  2 +-
 ld/testsuite/ld-x86-64/ibt-plt-3a.d           |  2 +-
 ld/testsuite/ld-x86-64/ibt-plt-3b.d           |  2 +-
 ld/testsuite/ld-x86-64/pr20830a-now.d         |  2 +-
 ld/testsuite/ld-x86-64/pr20830a.d             |  2 +-
 ld/testsuite/ld-x86-64/pr27016a.d             |  2 +-
 ld/testsuite/ld-x86-64/pr27016b.d             |  2 +-
 34 files changed, 145 insertions(+), 52 deletions(-)

-- 
2.50.1



More information about the Binutils mailing list