Extend the allowed bitfield range (ie. that for which
commitb2fd8315feb838b99468a4f4195e7688eca7f89b
authorAlan Modra <amodra@bigpond.net.au>
Fri, 17 Mar 2000 02:02:38 +0000 (17 02:02 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Fri, 17 Mar 2000 02:02:38 +0000 (17 02:02 +0000)
tree1359d156ece069576ec3739e8d0ea8e79df77692
parentf9e4d15ec980ad93bfcecb10a08cbde1150a36c9
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