diff options
author | Alan Modra <amodra@gmail.com> | 2000-04-11 13:07:56 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-04-11 13:07:56 +0000 |
commit | 43cbcf28590f2883478602d7cd7be26341ead69f (patch) | |
tree | 8c123332187421e5732d512ef4c720c5fb359f07 /bfd/elf32-mips.c | |
parent | 8be867464d33db5dee2dba5f197e5dd7f104dead (diff) | |
download | gdb-43cbcf28590f2883478602d7cd7be26341ead69f.zip gdb-43cbcf28590f2883478602d7cd7be26341ead69f.tar.gz gdb-43cbcf28590f2883478602d7cd7be26341ead69f.tar.bz2 |
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 d91bab9..d8471bf 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; |