This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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: Define constants in CODE (ROM) area.


Gary Thomas wrote:
> 
> If these are truly constant, the "const" qualifier should make this
> happen.  For example,
>   const int abc = 345;
> will put that data into the ".rodata" section.  You can adjust the
> linker script to put this into the TEXT section.  Note: we normally
> put read-only data into the DATA section, so you would have to make
> some changes for this to work completely.

Are you sure? I did a grep, and for ROM startups, rodata was in ROM only on
two non-public platforms. Still I'll follow up internally on those two.
 
Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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