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?


Bernd Jendrissek <berndj@prism.co.za> writes:

> On Tue, Mar 09, 2004 at 12:07:27PM -0700, Meg Abyte wrote:
>> >Can you quote what stty gives you when you say
>> ># stty -F /dev/tts/0 -a
>> >please?
>> 
>> speed 9600 baud; rows 0; columns 0; line = 0;
>> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
>> eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
>> lnext = ^V; flush = ^O; min = 1; time = 0;
>> -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
>> -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon 
>                                                                ^^^^^
>> -ixoff
>> -iuclc -ixany -imaxbel
>> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 
>   ^^^^^               ^^^^^
>> ff0
>> isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
>> echoctl echoke
>
> Turn those two off.  Not sure about opost, but I'd guess you might as
> well kill that too.

Turning off opost will disable _all_ postprocessing on output, so that
all other output settings are ignored.

> According to your settings, you'd have this mapping:
>
> File contents		Serial port output
> \012 (LF)		\015 (should work)
> \015 (CR)		\015 (should work)
> \015\012 (CRLF)		\012\012 (should *not* work)

Actually, it's this:

File contents		Serial port output
\012 (LF)		\015\012
\015 (CR)		\015
\015\012 (CRLF)		\015\012\012

since onlcr turns LF to CRLF.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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