This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: [ECOS] Re: ROMRAM .. kind of
- From: Stanislav Meduna <stano at meduna dot org>
- To: ecos-devel at ecos dot sourceware dot org
- Date: Thu, 23 Feb 2012 22:23:24 +0100
- Subject: Re: [ECOS] Re: ROMRAM .. kind of
- References: <4F4407A2.1030706@meduna.org> <CAOFa9c3aBi51iOj5=2bDoYv_zvVMPzSnvfh3jP3gX1i+YzTJhQ@mail.gmail.com>
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