public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "oliver munz @ s p e a g" <munz@speag.ch>
To: <chiszp@hotmail.com>, <ecos-discuss@sources.redhat.com>
Subject: [ECOS] Re: Subject: [ECOS] memory layout tool
Date: Tue, 05 Jul 2005 12:44:00 -0000	[thread overview]
Message-ID: <00e801c5815f$360b17a0$5e188481@cadpad> (raw)

Hi

1. At startup the vectors should be in ROM and start from 0 (If Your ROM
isn't defined from 0 then it has to be mirrored in the range of 0, and later
replaced with a RAM-region, after RAM-initalizing)
2. This mean that the ROM-data don't will be moved in to a RAM-region.
http://www.ecoscentric.com/ecospro/doc/html/user-guide/modifying-the-memory-layout.html
3. Most SECTIONS come from the GCC... The real linker-srcript is
...\lib\target.ld in Your eCos-include-dir after building the eCos-libray.
The .data section has to be copied from ROM to RAM before the C-code starts
(variable initialisation). The .bss section has to be cleared...

http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/Variable-Attributes.html#index-g_t_0040code_007bsection_007d-variable-attribute-1671
http://gcc.gnu.org/onlinedocs/
http://www.embedded.com/2000/0002/0002feat2.htm


Try to modify first an ROM.ldi of a silminar layout and .h. You only have to
edit Memory Startingpoint and size in *.ldi and *.h. Then build a image -
redboot or what ever and look at the generated code...

Use:
arm-elf-objdump -d -h -S Your_image.elf > Your_image.disass

Greatings Oli


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

                 reply	other threads:[~2005-07-05 12:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00e801c5815f$360b17a0$5e188481@cadpad' \
    --to=munz@speag.ch \
    --cc=chiszp@hotmail.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).