avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Bizarre string problem, part 3


From: David Gay
Subject: Re: [avr-gcc-list] Bizarre string problem, part 3
Date: Thu, 09 Sep 2004 09:01:29 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124

gouy yann wrote:
Hi,

both Richard and Ian are right.

I've been running your code, compiled with the
makefile provided with WinAVR, on simulavr and it runs
perfectly well.

both your compilation and your objcopy are the
problem.

And, given that nobody has spelt the problem out precisely: you *have* to link your whole program (run avr-gcc without -c) if you want to have much hope of things working. Not only did the example commands not include the data section, but it's the linker+crt0.o which conspire together to correctly initialise a program's data section.

If you don't like some of the things done by crt0.o, make your own version. Life will be rather simpler than trying to do without the linker.

David Gay
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]