This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Documentation for .ldi file?
- From: Grant Edwards <grant dot b dot edwards at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 18 Sep 2013 16:50:36 +0000 (UTC)
- Subject: Re: Documentation for .ldi file?
- Authentication-results: sourceware.org; auth=none
- References: <l174uv$sq2$1 at ger dot gmane dot org> <alpine dot DEB dot 2 dot 00 dot 1309170059210 dot 18810 at sg-laptop>
On 2013-09-16, Sergei Gavrikov <sergei.gavrikov@gmail.com> wrote:
> http://ecos.sourceware.org/docs-latest/user-guide/install-tree.html
> http://ecos.sourceware.org/docs-latest/user-guide/modifying-the-memory-layout.html
>
> MLT? http://ecos.sourceware.org/fom/ecos?_recurse=1&file=73#file_93
>
> Fortunately, we can dig a bit more, if we take a look on user guides for
> previous eCos releases, for example we can find MLT's look and feel
>
> http://ecos.sourceware.org/docs-1.3.1/guides/user-guides.7.html
Thanks for the pointers. I had forgotten there was supposed to be
some GUI memory layout tool that auto-generated stuff.
> By the way, cortexm.ld has USER_SECTION macro (arm.ld lacks)
>
> #define USER_SECTION(_name_, _region_, _vma_, _lma_) \
> ._name_ _vma_ : _lma_ \
> { __ ## _name_ ## _start = ABSOLUTE (.); \
> *(._name_*) \
> __ ## _name_ ## _end = ABSOLUTE (.); } \
> > _region_
>
> I must confess I have not used it. But, it seems this macro gives more
> freedom for .ldi designers.
That looks like what I needed. In the end, I just put some absolute
symbol assignments in my .ldi file to get the vector table located in
the right spot, while the "vectors" section contains only the
program's entry point. It's ugly, but it works. One day I'll have to
try to fix it so that I use a USER_SECTION for the vectors.
--
Grant Edwards grant.b.edwards Yow! ! I'm in a very
at clever and adorable INSANE
gmail.com ASYLUM!!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss