This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: memory layouts


>>>>> "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

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