PATCH: ld/1567: 64-bit vma overflow signalled from 32-bit-target address-wrap

Alan Modra amodra@bigpond.net.au
Mon Nov 7 02:09:00 GMT 2005


On Fri, Oct 28, 2005 at 10:16:25AM -0700, H. J. Lu wrote:
> 	PR ld/1567
> 	* reloc.c (_bfd_relocate_contents): Support 32bit target with
> 	64bit bfd_vma when checking complain_overflow_bitfield.

I don't think there is any point to this patch.  The real bug, which
Hans-Peter fixed, is using complain_overflow_bitfield on a reloc that
is the same width as the address size.  Presumably the intention is
that such relocs should never overflow, because
complain_overflow_bitfield would allow the entire address range.  So
simply using complain_overflow_dont is the correct solution.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list