From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14247 invoked by alias); 18 Sep 2013 16:51:03 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 14236 invoked by uid 89); 18 Sep 2013 16:51:02 -0000 Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 18 Sep 2013 16:51:02 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,KHOP_THREADED,RDNS_NONE,SPF_FAIL autolearn=no version=3.3.2 X-HELO: plane.gmane.org Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VMKxq-0003ni-P0 for ecos-discuss@ecos.sourceware.org; Wed, 18 Sep 2013 18:50:54 +0200 Received: from dsl.comtrol.com ([64.122.56.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Sep 2013 18:50:54 +0200 Received: from grant.b.edwards by dsl.comtrol.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Sep 2013 18:50:54 +0200 To: ecos-discuss@ecos.sourceware.org From: Grant Edwards Date: Wed, 18 Sep 2013 16:51:00 -0000 Message-ID: References: User-Agent: slrn/1.0.1 (Linux) X-IsSubscribed: yes Subject: [ECOS] Re: Documentation for .ldi file? X-SW-Source: 2013-09/txt/msg00009.txt.bz2 On 2013-09-16, Sergei Gavrikov 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