[PATCH v2 0/3] sframe: Fix sframe handling when doing garbage collection
Jens Remus
jremus@linux.ibm.com
Tue Jan 20 12:23:31 GMT 2026
Hello Claudio!
On 1/14/2026 11:05 AM, claudiu.zissulescu-ianculescu--- via Binutils wrote:
> 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.
> Claudiu Zissulescu (2):
> ld: bfd: sframe: KEEP .sframe sections and support gc-sections
> sframe: Add tests for PR ld/32769
>
> Indu Bhagat (1):
> sframe: additonal check in _bfd_x86_elf_link_setup_gnu_properties
Patch 1 causes the following linker tests to fail on s390 64-bit (s390x):
FAIL: Build libgot_64-1.so
FAIL: TLS -fpic -shared transitions
FAIL: TLS -fpic and -fno-pic exec transitions
FAIL: SFrame simple link
FAIL: SFrame for plt0 and pltN
FAIL: Empty SFrame section
Patch 2 causes most of the new linker test fails to go away, while the
following remain:
FAIL: SFrame simple link
FAIL: SFrame for plt0 and pltN
Both due to missing GNU_SFRAME program header, causing section headers
and sections (including .text) to start at a different address.
I suggest you swap the order of both patches, so that patch 2 comes
before patch 1. Not sure how to resolve the missing GNU_SFRAME program
header.
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/
More information about the Binutils
mailing list