[RFC 20/28] [SFrame-V3] gas: x86: testsuite: add new testcases for SFRAME_FDE_TYPE_FLEX_TOPMOST_FRAME

Jan Beulich jbeulich@suse.com
Thu Dec 18 10:01:50 GMT 2025


On 18.12.2025 10:50, Jan Beulich wrote:
> On 18.12.2025 10:05, Jens Remus wrote:
>> I naively tried the following to see whether that would cause the SFrame
>> code to choke as well, but it is apparently not valid assembler code, as
>> it fails with assembler "Warning: zero assumed for missing expression":
>>
>> 	.set DW_CFA_def_cfa_expression, 0x0f
>> 	.set DW_OP_breg6, 0x76
>> 	.set DW_OP_deref, 0x06
>> 	.cfi_escape DW_CFA_def_cfa_expression, 3, DW_OP_breg6, sleb(-8), DW_OP_deref
>>
>> Why is that so?
> 
> Because I screwed up when I added support for the sleb() etc input forms. I'll
> get that fixed.
> 
> There's also a second problem here - sleb(-8) encodes to 0xf8, when it should
> be 0x78.

That's a consequence of the other bug combined with it being sleb128(-8),
not sleb(-8). That other bug caused "sleb" to be skipped and (-8) to be
parsed as expression.

Jan


More information about the Binutils mailing list