Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Initialised Data Section

Hi

I'm having difficulty recognising the symbols for the initialised data section.

The autogenerated linker file looks like it dumps all rw data into one area. Later alt_load() invokes a load section with the rather uninspirational values alt_load_section(2091FA4, 2091FA4, 2092A74). Obviously this means that after the first run, the initialised data areas are corrupted and no copy exists from which to restore them.

It looks as though the system allows only for downloading to flash and then loading across to ram.

So I would like to locate the initialisation values in a code section so they can be copied over the initialised variable section at each reset.

Unfortunately I'm having difficulty finding the built-in keywords for these sections in the compiler docs.

Anyone know a link to appropriate Gnu docs, or better yet a ld file fragment?

Cheers
No RepliesBe the first to reply