Forum Discussion
Altera_Forum
Honored Contributor
21 years agoLinker (NIOS2-ELF-LD) help requested
We're using Accelerated Technology's Nucleus PLUS RTOS in a product that we're designing. For one part of it, we need to fix a constant structure at a known location in Flash. Alte...
Altera_Forum
Honored Contributor
21 years agoSorry ... forgot: if it's a const e.g.
const struct foo bar = {...}; The input section will be .rodata Also for initialized data, the size of the struct and the compiler -G option will affect the struct's placement in the .data section or the .sdata section. By default, if the struct is (better check me on this) 8 bytes or less, it'll be in .sdata, otherwise in .data. Regards, --Scott