Landing: c8b5c0f50e2e
Project / Subsystem
binutils / gas/bpf
Date
2026-09-10
Author
Vineet Gupta <vineetg@sourceware.org>
Commit
c8b5c0f50e2e909296e601525808ab735862bcc2
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- gas/bpf
- patch_id
- —
- commit_hash
- c8b5c0f50e2e909296e601525808ab735862bcc2
- source_type
- public_inbox
- headline
- BPF assembler: normalize mnemonics with `%t` for better parsing
- tldr
- BPF assembler's mnemonic parsing is improved by consistently using `%t` after mnemonics, preventing errors with adjacent operands.
- author
- Vineet Gupta <vineetg@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • bpf
- • assembler
- • parsing
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-10T00:00:00.000Z
This commit refines the BPF assembler’s parsing of mnemonics by applying the %t directive more broadly. This directive signifies the end of a mnemonic, ensuring that subsequent operands are not misinterpreted as part of the mnemonic itself. The change updates 65 sites in tc-bpf.c and opcodes/bpf-opc.c, addressing potential assembly errors, especially when mnemonics are immediately followed by operands without whitespace. It also adjusts parsing rules for the lock mnemonic to correctly handle its operand.