[PATCH 0/3] sframe: Fix sframe handling when doing garbage collection
claudiu.zissulescu-ianculescu@oracle.com
claudiu.zissulescu-ianculescu@oracle.com
Mon Jan 12 10:53:26 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.
Ok for trunk?
Claudiu
Claudiu Zissulescu (3):
sframe: Add tests for PR ld/32769
ld: bfd: sframe: KEEP .sframe sections and support gc-sections
bfd: x86: sframe: additonal check in
_bfd_x86_elf_link_setup_gnu_properties
bfd/elf-bfd.h | 5 ++
bfd/elflink.c | 43 ++++++++++------
bfd/elfxx-x86.c | 22 ++++++++
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-3.d | 10 ++++
ld/testsuite/ld-sframe/pr32769-3.s | 21 ++++++++
ld/testsuite/ld-sframe/pr32769.rd | 16 ++++++
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 | 11 ++++
ld/testsuite/ld-x86-64/x86-64.exp | 3 ++
18 files changed, 343 insertions(+), 17 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-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