This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]