[V2 31/36] [SFrame-V3] ld: discard sframe sections when --discard-sframe

Jens Remus jremus@linux.ibm.com
Wed Jan 7 12:06:12 GMT 2026


On 1/7/2026 9:42 AM, Indu Bhagat wrote:
> Mark SFrame sections with SEC_EXCLUDE if --discard-sframe is in effect.
> 
> TBD:
>   - This does generate an empty .sframe section though!  A problem ? No
>     segment marker PT_GNU_SFRAME is created, which is good

Without an empty .sframe section would be preferable.  But maybe that
can be resolved later on?  Not sure how others think about that though.

> 
> bfd/
> 	* elf-sframe.c (_bfd_elf_parse_sframe): Mark with SEC_EXCLUDE if
> 	--discard-sframe is in effect.
> ld/testsuite/
> 	* ld-x86-64/x86-64.exp: New test.
> 	* ld-x86-64/sframe-command-line-1.d: New test.

Wouldn't it make sense to squash this patch into the previous?  At least
prior to committing.

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