]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: Skip SFrame FDE if .cfi_val_offset specifies non-default offset
authorJens Remus <jremus@linux.ibm.com>
Tue, 4 Feb 2025 14:13:24 +0000 (15:13 +0100)
committerJens Remus <jremus@linux.ibm.com>
Tue, 4 Feb 2025 14:13:24 +0000 (15:13 +0100)
commit49da9e9d9e6dfdca620cd9d953b543598d7b61cf
treee749d2e42bf8b93e6560963b54e9a1383d1cffe0
parent0e9555a011e8c5309efcc85b1a01a01496e2bbe3
gas: Skip SFrame FDE if .cfi_val_offset specifies non-default offset

Unwinding of the stack pointer (SP) is performed using the assumed
default rule ".cfi_val_offset <SP-reg>, 0", so that SP unwinds as:

  SP = CFA

Warn if the CFI directive .cfi_val_offset is encountered for the
SP register with a different offset.

gas/
* gen-sframe.c (sframe_xlate_do_val_offset): Skip SFrame FDE
if non-default SP value offset.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
gas/gen-sframe.c