[PATCH v2 3/3] sframe: Add tests for PR ld/32769
Jan Beulich
jbeulich@suse.com
Fri Jan 16 09:40:31 GMT 2026
On 14.01.2026 11:05, claudiu.zissulescu-ianculescu--- via Binutils wrote:
> --- /dev/null
> +++ b/ld/testsuite/ld-x86-64/sframe-gc-sections-1.d
> @@ -0,0 +1,50 @@
> +#as: --gsframe
> +#source: sframe-foo.s
> +#source: sframe-bar.s
> +#source: sframe-baz.s
> +#objdump: --sframe=.sframe
> +#ld: --gc-sections -e _start
> +#name: SFrame gc sections
> +
> +.*: +file format .*
> +
> +Contents of the SFrame section .sframe:
> + Header :
> +
> + Version: SFRAME_VERSION_2
> + Flags: SFRAME_F_FDE_SORTED,
> + SFRAME_F_FDE_FUNC_START_PCREL
> + CFA fixed RA offset: -8
> + Num FDEs: 5
> + Num FREs: 14
> +
> + Function Index :
> +
> + func idx \[0\]: pc = 0x[0-9a-f]+, size = 53 bytes
> + STARTPC +CFA +FP +RA +
> + [0-9a-f]+ +sp\+8 +u +f +
> + [0-9a-f]+ +sp\+16 +c-16 +f +
> + [0-9a-f]+ +fp\+16 +c-16 +f +
> + [0-9a-f]+ +sp\+8 +c-16 +f +
> +
> + func idx \[1\]: pc = 0x[0-9a-f]+, size = 37 bytes
> + STARTPC +CFA +FP +RA +
> + [0-9a-f]+ +sp\+8 +u +f +
> + [0-9a-f]+ +sp\+16 +c-16 +f +
> + [0-9a-f]+ +fp\+16 +c-16 +f +
> + [0-9a-f]+ +sp\+8 +c-16 +f +
> +
> + func idx \[2\]: pc = 0x[0-9a-f]+, size = 11 bytes
> + STARTPC +CFA +FP +RA +
> + [0-9a-f]+ +sp\+8 +u +f +
> + [0-9a-f]+ +sp\+16 +c-16 +f +
> + [0-9a-f]+ +fp\+16 +c-16 +f +
> + [0-9a-f]+ +sp\+8 +c-16 +f +
> +
> + func idx \[3\]: pc = 0x[0-9a-f]+, size = 2 bytes
> + STARTPC +CFA +FP +RA +
> + [0-9a-f]+ +sp\+8 +u +f +
> +
> + func idx \[4\]: pc = 0x[0-9a-f]+, size = 14 bytes
> + STARTPC +CFA +FP +RA +
> + [0-9a-f]+ +sp\+8 +u +f +
Oh, also, at the example of this: Is the number of leading blanks here
relevant for what is being tested? Are the particular size values
relevant?
Jan
More information about the Binutils
mailing list