aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-09-17 19:07:00 -0700
committerPalmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>2015-09-19 00:34:13 -0700
commit20ddb8f394789a5f248a7d40aa5be1a14955e143 (patch)
treebc2b666f136c2b6957c2acc2fc64cd862870f211 /binutils
parent883113ba2242ecef01b2e77325a453f40fc7b363 (diff)
downloadriscv-gnu-toolchain-20ddb8f394789a5f248a7d40aa5be1a14955e143.zip
riscv-gnu-toolchain-20ddb8f394789a5f248a7d40aa5be1a14955e143.tar.gz
riscv-gnu-toolchain-20ddb8f394789a5f248a7d40aa5be1a14955e143.tar.bz2
binutils: remove a hopefully-irrelevant overflow check
Diffstat (limited to 'binutils')
-rw-r--r--binutils/gas/config/tc-riscv.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/binutils/gas/config/tc-riscv.c b/binutils/gas/config/tc-riscv.c
index b69a096..abfcebc 100644
--- a/binutils/gas/config/tc-riscv.c
+++ b/binutils/gas/config/tc-riscv.c
@@ -731,18 +731,6 @@ append_insn (struct riscv_cl_insn *ip, expressionS *address_expr,
ip->fixp = fix_new_exp (ip->frag, ip->where,
bfd_get_reloc_size (howto),
address_expr, FALSE, reloc_type);
-
- /* These relocations can have an addend that won't fit in
- 4 octets for 64bit assembly. */
- if (xlen == 64
- && ! howto->partial_inplace
- && (reloc_type == BFD_RELOC_32
- || reloc_type == BFD_RELOC_64
- || reloc_type == BFD_RELOC_CTOR
- || reloc_type == BFD_RELOC_RISCV_HI20
- || reloc_type == BFD_RELOC_RISCV_LO12_I
- || reloc_type == BFD_RELOC_RISCV_LO12_S))
- ip->fixp->fx_no_overflow = 1;
}
append: