]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: dw2gencfi: reset reloc to TC_PARSE_CONS_RETURN_NONE for [su]leb128
authorIndu Bhagat <indu.bhagat@oracle.com>
Sat, 20 Dec 2025 04:29:34 +0000 (20:29 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Mon, 5 Jan 2026 22:13:55 +0000 (14:13 -0800)
commitdfd1195bee9b6e051f2990741d4eb44d007d616a
treeca431e89c5ca04067289ae4e8d5da47bd8e1107e
parent1d1314ef9595d6d423c897408debdbebf056000a
gas: dw2gencfi: reset reloc to TC_PARSE_CONS_RETURN_NONE for [su]leb128

Some consumers, like SFrame generation logic in GAS, may want to check
reloc value (without qualifying by e->type) as a part of their
admissibility criteria.  Setting reloc to TC_PARSE_CONS_RETURN_NONE for
these CFI escape expr nodes for [su]leb128 keeps the admissibility
checks simple and generic.

Previous discussion here:
https://sourceware.org/pipermail/binutils/2025-December/146807.html

gas/
* gas/dw2gencfi.c (dot_cfi_escape): Set reloc to
TC_PARSE_CONS_RETURN_NONE.
gas/dw2gencfi.c