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

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

Re: [avr-gcc-list] Table in bootloader section


From: Theodore A. Roth
Subject: Re: [avr-gcc-list] Table in bootloader section
Date: Wed, 22 Oct 2003 09:14:43 -0700 (PDT)


On Wed, 22 Oct 2003, Marko Panger AGB Lab wrote:

> Hello !
>
> I have already posted this but nobody solved this, so I am trying once
> again:
>
> I would like to put an pre-defined array in the bootloader section. I
> know how to place code in the bootloader section, but I am unable to put
> an array in the same section.
>
> prog_char table[] __attribute__ ((section (".bootloader"))) = {1,2,3,4,5};
>
> The file compile well, but the table is not in the supposed section.

Did you try specifying where the .bootloader section starts by adding
something like this to the link command?

  -Wl,--section-start=.bootloader=0xE000

It's not clear in the avr-libc manual wether you need to do that or
not. If that is required, the dox should be updated to reflect that.

Ted Roth


reply via email to

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