FW: Re: Why is my executabel in DOS file format?
Meg Abyte
fitter20@hotmail.com
Wed Mar 3 20:51:00 GMT 2004
>
> >From Dave:
> >>That was explained in a previous response: objcopy thinks
> >that the srec
> >>specification requires that this be the case.
> >>
> >
> >So since this isn't the case is there someone to contact who
> >would consider
> >adding this... the objcopy guru.
>
>Well it is not exactly an objcopy issue. It is the bfd change and if you
>Wish to get it done then just apply this patch to your local binutil
>sources
>and build it again
>
>Personally I feel that it is the format of the srec files to have /r/n as
>the line terminator.
>So this patch should not be there in the mainline. <debateable>
"Personally" !??! This isn't what specs are for. As I posted before the
SRecord specification written and created by Motorola says "CR/LF/NULL" -
NOT /r/n.
Sorry to sound so surprized but this is right out of the spec.
BUT THANK YOU so much FOR THE FOLLOWING changes to make to srec.c !!! I
will try this change and try it out once I recompile the software.
However, this should be fixed - its clearly not following the spec.
/cr/lf/null != /r/n
Thanks
Michael B
>
>========================================================
>--- bfd/srec.c Tue Feb 18 19:02:21 2003
>+++ bfd/srec1.c Wed Mar 3 00:52:35 2004
>@@ -982,7 +982,7 @@ srec_write_record (abfd, type, address,
> TOHEX (dst, check_sum, check_sum);
> dst += 2;
>
>- *dst++ = '\r';
>+ /* *dst++ = '\r';*/
> *dst++ = '\n';
> wrlen = dst - buffer;
> if (bfd_bwrite ((PTR) buffer, wrlen, abfd) != wrlen)
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
More information about the Binutils
mailing list