Why is my executabel in DOS file format?
Meg Abyte
fitter20@hotmail.com
Tue Mar 2 06:36:00 GMT 2004
>Meg Abyte wrote:
>> I have compile the GNU GCC tools for the Motorola MCORE on a RH linux
>>system. However, when I make the executabel (.s19) it produces it in a DOS
>>file format
>
>Gcc produces only assembly output files, and these are unlikely to be in
>the wrong format.
>
>Normally the assembler files are turned into binaries by the
>assembler/linker. Binaries are not text files, so there isn't an issue
>here about how to end lines of text. The assembler/linker are in a
>separate package called binutils.
>I don't know what you mean by a .s19 executable file. Whatever tool you
>are using to create the .s19 files is the one that has the problem. This is
>not gcc, and perhaps not even binutils. Unless perhaps this is some kind
>of hex dump format, in which case binutils could be producing it. Some
>kinds of hex dumps might default to DOS file format because some ROM
>programmers expect to receive DOS files as input, and won't work if fed
>UNIX files. In any case, binutils problems should not be discussed here.
>Try bug-binutils@gnu.org if this is a binutils issue.
>--
Ok, I will try the address you gave. Yes, the executable is produced by the
linker and it is a text file that gets sent to a microprocessor or
programmed into Flash memory. However, it needs to have dos2unix run on it -
thus my need to get rid of the CR-LF, and just have LF.
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
More information about the Gcc
mailing list