On 22.02.2012 06:33, Elad Yosef wrote: > You can look at the ecos tables. > The Tables macros assigned section attribute and the linker script > keeps them all in the section.
I know how to direct code or data into a section. I don't know how to link it for the address somewhere else, such that I compile a code for a section starting at e.g. 0x20000000, but store it somewhere in .rodata or something. But thanks for the pointer anyway, it gave me a hint what to google for in the linker documentation ;) Looks that the AT could be what I am searching for: http://www.linuxselfhelp.com/gnu/ld/html_chapter/ld_3.html#SEC21 contains an example of exactly what I want. Regards -- Stano