This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: memory layouts
- To: "danish iftikhar" <d_iftikhar at hotmail dot com>
- Subject: Re: [ECOS] memory layouts
- From: Jesper Skov <jskov at redhat dot com>
- Date: 06 Nov 2000 12:50:16 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- References: <F287R77bieLYCT4aJ6p00008e4f@hotmail.com>
>>>>> "danish" == danish iftikhar <d_iftikhar@hotmail.com> writes:
danish> Hi
danish> going through the eCos repository , i am trying to figure
danish> out how to change the memory layout ( linker script fragments)
danish> for porting it to other platforms . in the include/pkgconf
danish> directory , i found that there are specifically .h , .ldi &
danish> .mlt files . But .h & .ldi are supposed to be generatede ones
danish> . I am not able to figure out , how and from where are they
danish> generated. If i have to make my own linker script fragment ,
danish> then where should i make my scripts or can i edit any of these
danish> files dirctly to map my platforms memory layout , if so which
danish> files . where can i get a good tutorial specifying different
danish> sections used in these files such as "fini" , "fixup" etc..
Please see these:
http://sources.redhat.com/ecos/docs-latest/porting/hal-linking.html
http://sources.redhat.com/ecos/docs-latest/porting/hal-memory.html
+ to generate the files, you need to run the configuration tool under
WinDOS. If you don't have access to that, just change the .h and .ldi
files by hand (ignore the .mlt file).
The sections are defined by the linker, try 'XXX-elf-ld --verbose'.
But if you are just adding a new platform, the architecture/variant
already defines the necessary sections (see the .ld file)
Jesper