]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bpf: Fixed register parsing disambiguating with possible symbol.
authorCupertino Miranda <cupertino.miranda@oracle.com>
Tue, 21 Nov 2023 12:26:08 +0000 (12:26 +0000)
committerCupertino Miranda <cupertino.miranda@oracle.com>
Tue, 21 Nov 2023 18:33:54 +0000 (18:33 +0000)
commit97b29a61f7f001550fe985bf2deea1550e3c20dd
tree3510ed2ec2bf1f4ff803050ec30261a0f96e09a7
parent54195469c18ec9873cc5ba6907f768509473fa9b
bpf: Fixed register parsing disambiguating with possible symbol.

This changes parse_bpf_register to detect possible symbols that start with valid
register name, however due some following characters are not.
Also changed the regs-for-symbols-pseudo.s, adding some entries that
should not error if parser is properly detecting the symbol.
gas/config/tc-bpf.c
gas/testsuite/gas/bpf/regs-for-symbols-pseudoc.s