[PATCH v4 0/2] sframe: Fix sframe handling when doing garbage collection

claudiu.zissulescu-ianculescu@oracle.com claudiu.zissulescu-ianculescu@oracle.com
Mon Jan 26 15:51:07 GMT 2026


From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>

Hello,
 
Please find a series of patches that fixes the removing of sframe
sections during garbage collection. This patch series fixes the
bugzilla issue PR ld/32769.

What is new:
 - Added a new test for checking the sframe relas when we GC.
 - sframe-gc-sections-* are checking if the full sframe dump is correct.

Observations:
 - ld: bfd: sframe: KEEP .sframe sections and support gc-sections is reviewd by Jens, included here for completion.

OK for mainline?
Claudiu

Claudiu Zissulescu (2):
  ld: bfd: sframe: KEEP .sframe sections and support gc-sections
  sframe: Add tests for PR ld/32769

 bfd/elf-bfd.h                                 |  5 ++
 bfd/elflink.c                                 | 36 +++++++++----
 ld/scripttempl/elf.sc                         |  4 +-
 ld/testsuite/ld-sframe/pr32769-2.d            |  9 ++++
 ld/testsuite/ld-sframe/pr32769-2.s            | 19 +++++++
 ld/testsuite/ld-sframe/pr32769-2r.d           |  9 ++++
 ld/testsuite/ld-sframe/pr32769-3.d            | 10 ++++
 ld/testsuite/ld-sframe/pr32769-3.s            | 21 ++++++++
 ld/testsuite/ld-sframe/pr32769.rd             | 14 ++++++
 ld/testsuite/ld-sframe/pr32769.s              |  8 +++
 ld/testsuite/ld-sframe/sframe.exp             |  9 ++++
 ld/testsuite/ld-x86-64/sframe-baz.s           | 36 +++++++++++++
 ld/testsuite/ld-x86-64/sframe-gc-sections-1.d | 50 +++++++++++++++++++
 ld/testsuite/ld-x86-64/sframe-gc-sections-2.s | 35 +++++++++++++
 .../ld-x86-64/sframe-gc-sections-2a.d         | 29 +++++++++++
 .../ld-x86-64/sframe-gc-sections-2b.d         | 30 +++++++++++
 .../ld-x86-64/sframe-gc-sections-2b.t         | 16 ++++++
 ld/testsuite/ld-x86-64/x86-64.exp             |  3 ++
 18 files changed, 331 insertions(+), 12 deletions(-)
 create mode 100644 ld/testsuite/ld-sframe/pr32769-2.d
 create mode 100644 ld/testsuite/ld-sframe/pr32769-2.s
 create mode 100644 ld/testsuite/ld-sframe/pr32769-2r.d
 create mode 100644 ld/testsuite/ld-sframe/pr32769-3.d
 create mode 100644 ld/testsuite/ld-sframe/pr32769-3.s
 create mode 100644 ld/testsuite/ld-sframe/pr32769.rd
 create mode 100644 ld/testsuite/ld-sframe/pr32769.s
 create mode 100644 ld/testsuite/ld-x86-64/sframe-baz.s
 create mode 100644 ld/testsuite/ld-x86-64/sframe-gc-sections-1.d
 create mode 100644 ld/testsuite/ld-x86-64/sframe-gc-sections-2.s
 create mode 100644 ld/testsuite/ld-x86-64/sframe-gc-sections-2a.d
 create mode 100644 ld/testsuite/ld-x86-64/sframe-gc-sections-2b.d
 create mode 100644 ld/testsuite/ld-x86-64/sframe-gc-sections-2b.t

-- 
2.52.0



More information about the Binutils mailing list