aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-bpf.c
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2020-06-04 16:33:34 +0200
committerJose E. Marchesi <jose.marchesi@oracle.com>2020-06-04 16:34:16 +0200
commit7d8b91fda9fed423b91d4d43b19dd068457fe555 (patch)
treee44c5e621350211ce2711397ef7453ccd31da7ca /gas/config/tc-bpf.c
parent95146b5da22532c6688e457adb48fecbceb194b3 (diff)
downloadbinutils-7d8b91fda9fed423b91d4d43b19dd068457fe555.zip
binutils-7d8b91fda9fed423b91d4d43b19dd068457fe555.tar.gz
binutils-7d8b91fda9fed423b91d4d43b19dd068457fe555.tar.bz2
gas: simplify code in tc-bpf.c:md_apply_fix
2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com> * config/tc-bpf.c (md_apply_fix): Simplify and avoid using cgen_put_insn_value.
Diffstat (limited to 'gas/config/tc-bpf.c')
-rw-r--r--gas/config/tc-bpf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gas/config/tc-bpf.c b/gas/config/tc-bpf.c
index b742f42..aa48108 100644
--- a/gas/config/tc-bpf.c
+++ b/gas/config/tc-bpf.c
@@ -325,9 +325,7 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg)
Note that the CALL instruction has only one operand, so
this code is executed only once per instruction. */
where = fixP->fx_frag->fr_literal + fixP->fx_where;
- cgen_put_insn_value (gas_cgen_cpu_desc, (unsigned char *) where + 1, 8,
- target_big_endian ? 0x01 : 0x10,
- gas_cgen_cpu_desc->endian);
+ where[1] = target_big_endian ? 0x01 : 0x10;
/* Fallthrough. */
case BPF_OPERAND_DISP16:
/* The PC-relative displacement fields in jump instructions