diff options
author | Alan Modra <amodra@bigpond.net.au> | 2000-04-11 13:07:56 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2000-04-11 13:07:56 +0000 |
commit | 5b29100ec59f523e14f12e83fc0a0fee5832f66a (patch) | |
tree | 64ffc8547fda1131e442448b0ae86f3cd2a071e2 /bfd/elf32-mips.c | |
parent | c75fe872b1605f9cf6b8128fd6ec833054fb8d55 (diff) | |
download | binutils-redhat-5b29100ec59f523e14f12e83fc0a0fee5832f66a.tar.gz |
Fit 64-bit nits.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r-- | bfd/elf32-mips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index d91bab9726..d8471bf193 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -1520,7 +1520,7 @@ gprel16_with_gp (abfd, symbol, reloc_entry, input_section, relocateable, data, reloc_entry->address += input_section->output_offset; /* Make sure it fit in 16 bits. */ - if (val >= 0x8000 && val < 0xffff8000) + if ((long) val >= 0x8000 || (long) val < -0x8000) return bfd_reloc_overflow; return bfd_reloc_ok; |