]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
gas: sframe: ignore .cfi_offset for RA selectively
authorIndu Bhagat <indu.bhagat@oracle.com>
Tue, 23 Dec 2025 22:59:09 +0000 (14:59 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Tue, 23 Dec 2025 22:59:09 +0000 (14:59 -0800)
commit18af14d5ef44e200a41a14493be1f1f5ea4e038a
tree70871ec417f14318cdc01f48ccd84af0699ebc16
parent2d431d0139493cdefb49f662b5df295d8bc32f65
gas: sframe: ignore .cfi_offset for RA selectively

For ABIs not tracking RA (e.g., AMD64), the return address is expected
to be in a specific location (usually a fixed offset from CFA on stack).
Explicit manourvering to a different offset may be non-representable in
SFrame, and should not be simply ignored.

Although such patterns are not usually seen in the wild, it is more
correct to catch them if at all they manifest.

Reviewed-by: Jens Remus <jremus@linux.ibm.com>
gas/
* gen-sframe.c (sframe_xlate_do_offset): Do not ignore
.cfi_offset for RA all the time.
gas/gen-sframe.c