This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
mn10300: PCREL16 reloc question
- From: DJ Delorie <dj at redhat dot com>
- To: binutils at sourceware dot org
- Date: Thu, 13 Dec 2007 21:25:41 -0500
- Subject: mn10300: PCREL16 reloc question
In elf-m10300.c mn10300_elf_final_link_relocate() for the
R_MN10300_PCREL16 case at line 1221, we use a range that's twice as
big as I'd expect:
if ((long) value > 0xffff || (long) value < -0x10000)
return bfd_reloc_overflow;
Are there any real cases where we'd need this range, and not the usual
-0x8000..0x7fff range?
We do the same for PCREL8 just above it, too.