]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: sframe: handle .cfi_undefined
authorIndu Bhagat <indu.bhagat@oracle.com>
Mon, 19 May 2025 07:05:17 +0000 (00:05 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Mon, 19 May 2025 07:05:17 +0000 (00:05 -0700)
commitb4917deea42ae90506f6c1cf196fb10fa17645fc
tree35d9ac307efb08511fd0281620263ae715b4f1bc
parentbd9dc0a281a4657b7641e4ed656cd0497ccba7ae
gas: sframe: handle .cfi_undefined

Fix PR gas/32952 - sframe: incorrect handling of .cfi_undefined in gas

In context of SFrame generation, it is incorrect to simply ignore all
.cfi_undefined.  We may ignore only those .cfi_undefined which are for
registers of no interest (similar to whats done for other CFI
directives).

gas/
        * gen-sframe.c (sframe_xlate_do_cfi_undefined): New definition.
        (sframe_do_cfi_insn): Handle .cfi_undefined.
gas/testsuite/
        * gas/cfi-sframe/cfi-sframe.exp: Add new tests.
        * gas/cfi-sframe/cfi-sframe-common-10.d: New test.
        * gas/cfi-sframe/cfi-sframe-common-10.s: New test.
* gas/cfi-sframe/cfi-sframe-x86_64-empty-4.d: New test.
* gas/cfi-sframe/cfi-sframe-x86_64-empty-4.s: New test.
gas/gen-sframe.c
gas/testsuite/gas/cfi-sframe/cfi-sframe-common-10.d [new file with mode: 0644]
gas/testsuite/gas/cfi-sframe/cfi-sframe-common-10.s [new file with mode: 0644]
gas/testsuite/gas/cfi-sframe/cfi-sframe-x86_64-empty-4.d [new file with mode: 0644]
gas/testsuite/gas/cfi-sframe/cfi-sframe-x86_64-empty-4.s [new file with mode: 0644]
gas/testsuite/gas/cfi-sframe/cfi-sframe.exp