This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: FW: Re: Why is my executabel in DOS file format?
- From: "Gupta Nitin (IFIN DC AI)" <Nitin dot Gupta at infineon dot com>
- To: Meg Abyte <fitter20 at hotmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 3 Mar 2004 16:29:43 +0530
- Subject: RE: FW: Re: Why is my executabel in DOS file format?
>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>
========================================================
--- 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)