* config/tc-bpf.h (md_single_noop_insn): Use 'ja 0' for no-op.
+2020-09-15 David Faust <david.faust@oracle.com>
+
+ * config/tc-bpf.h (md_single_noop_insn): Use 'ja 0' for no-op.
+
2020-09-14 Nick Clifton <nickc@redhat.com>
* read.c (s_nop): New function. Handles the .nop directive.
/* Values passed to md_apply_fix don't include the symbol value. */
#define MD_APPLY_SYM_VALUE(FIX) 0
-#define md_single_noop_insn "mov %r1,%r1"
+/* The Linux kernel verifier expects NOPs to be encoded in this way;
+ a jump to offset 0 means jump to the next instruction. */
+#define md_single_noop_insn "ja 0"