OSDN Git Service

Extend the allowed bitfield range (ie. that for which
authoramodra <amodra>
Fri, 17 Mar 2000 02:02:38 +0000 (02:02 +0000)
committeramodra <amodra>
Fri, 17 Mar 2000 02:02:38 +0000 (02:02 +0000)
commit4e1e3535c70ce26871ddbbe6ebb696d03d7e3405
tree9ba6a02acfdbd50ed72800a82f7919a8512ca8d6
parentcd0d917d13ff9499ffa426dda0ee2e3d2aa2529e
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