public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re: Subject: [ECOS] memory layout tool
@ 2005-07-05 12:44 oliver munz @ s p e a g
  0 siblings, 0 replies; only message in thread
From: oliver munz @ s p e a g @ 2005-07-05 12:44 UTC (permalink / raw)
  To: chiszp, ecos-discuss

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-05 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-05 12:44 [ECOS] Re: Subject: [ECOS] memory layout tool oliver munz @ s p e a g

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).