64-bit support for srec
Alan Modra
amodra@gmail.com
Thu Feb 2 03:23:00 GMT 2012
On Wed, Feb 01, 2012 at 03:55:11PM -0800, Mike Stump wrote:
> --- 897,907 ----
> else if ((section->lma + offset + bytes_to_do - 1) <= 0xffffff
> && tdata->type <= 2)
> tdata->type = 2;
> ! else if ((section->lma + offset + bytes_to_do - 1) <= 0xffffffff
> ! && tdata->type <= 2)
Probably ought to be <= 3 here. Presumably the idea of the existing
code is that once you've used S3 records, don't drop back to S2.
> + case 4:
> + TOHEX (dst, (address >> 56), check_sum);
> + dst += 2;
What if "address" is only a 32-bit type? I think you need to
conditionalize all your new code on BFD64. And it would be sad if we
can't read back our own output..
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list