Extend the allowed bitfield range (ie. that for which
authorAlan Modra <amodra@gmail.com>
Fri, 17 Mar 2000 02:02:38 +0000 (02:02 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 17 Mar 2000 02:02:38 +0000 (02:02 +0000)
commitd5afc56eb1c6a3cc0b3e899664bb59689ba12417
tree170ee8ab0d6cf599f39368e5ff65b76233b9ef04
parent17f9defb0b0670c472e58af60cfa96ba4c3eaafb
Extend the allowed bitfield range (ie. that for which
complain_overflow_bitfield doesn't complain) from -2**(n-1)..2**n-1 to
-2**n..2**n.  This might mean that some reloc overflows are no longer
caught, but it solves the address wrap problem for 16-bit relocs
nicely.  In any case, ports that rely on complain_overflow_bitfield
for reloc overflow checking were not getting a very good check
previously.  A bitfield range in a machine instruction is typically
either the signed or unsigned n bit numbers, not the overlap of these
two ranges.
bfd/ChangeLog
bfd/reloc.c