From: Dave N6NZ <address@hidden>
To: Gre7g Luterman <address@hidden>
Cc: address@hidden
Sent: Friday, October 10, 2008 11:02:21 AM
Subject: Re: [avr-gcc-list] Link script question
>> That would work, of course, but I'd have to designate a constant
>> address for the block, right?
>
> No, not at all. That's the point of putting it in the linker script and
> letting the linker compute the address.
>
>> The script as I have it now,
>> automagically selects the first available block after my code. I
>> really like having this done automatically for me.
>
> And that is exactly what this does. Take a look at the linker script
> and how it works. All my addition does is declare a named section that
> starts at exactly the place that your __user_prog_start symbol is
> defined. It's really your solution, but with an additional name that
> you can use as an attribute to a data section.
Well, I don't get it. I tried sticking your solution in and I get:
ld.exe:mega32.ld:177: syntax error
Obviously I'm missing something. Your section definitions don't look like the others in the script. I'll attach the patched script to this e-mail. Perhaps someone can correct the syntax error and show me what I'm missing.
Gre7g