projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fit 64-bit nits.
[platform/upstream/binutils.git]
/
bfd
/
elf32-mips.c
diff --git
a/bfd/elf32-mips.c
b/bfd/elf32-mips.c
index
d91bab9
..
d8471bf
100644
(file)
--- 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 < 0xffff
8000)
+ if (
(long) val >= 0x8000 || (long) val < -0x
8000)
return bfd_reloc_overflow;
return bfd_reloc_ok;