This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Documentation for .ldi file?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]