bug in bfd relocation overflow handling

2005-11-30 Thread Chris Metcalf
It appears that if you have a 64-bit host targetting a 32-bit platform, the complain_overflow_bitfield case in _bfd_relocate_contents() will incorrectly generate an overflow error for negative constants. The "~fieldmask" gives you a whole lot of high one bits (for a 16-bit bitfield you get 0xf

Re: bug in bfd relocation overflow handling

2005-11-30 Thread Alan Modra
On Wed, Nov 30, 2005 at 03:02:25PM -0500, Chris Metcalf wrote: > It appears that if you have a 64-bit host targetting a 32-bit platform, > the complain_overflow_bitfield case in _bfd_relocate_contents() will The real bug is the 32-bit target using complain_overflow_bitfield on a 32-bit relocatio