diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-11-18 18:12:44 +0100 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-11-18 18:17:26 +0100 |
commit | 8fbb497b7202f404d8914252d44d2ee190a0e172 (patch) | |
tree | f66854caee10fdcb22186c67eedae3aebe24f1f5 /bfd | |
parent | 26c7a0ea380bedb86ff3b5a9ed252d8d2557a0c5 (diff) | |
download | gdb-8fbb497b7202f404d8914252d44d2ee190a0e172.zip gdb-8fbb497b7202f404d8914252d44d2ee190a0e172.tar.gz gdb-8fbb497b7202f404d8914252d44d2ee190a0e172.tar.bz2 |
gas: bpf: do not allow referring to register names as symbols in operands
2023-11-18 Jose E. Marchesi <jemarch@gnu.org>
* config/tc-bpf.c (parse_bpf_register): Move before
bpf_parse_name.
(bpf_parse_name): Do not allow using symbols that are also
register names as operands in pseudo-c syntax.
* testsuite/gas/bpf/regs-for-symbols-pseudoc.d: New file.
* testsuite/gas/bpf/regs-for-symbols-pseudoc.s: Likewise.
* testsuite/gas/bpf/regs-for-symbols-pseudoc.l: Likewise.
* doc/c-bpf.texi (BPF Registers): Document that it is not possible
to refer to register names as symbols in instruction operands.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions