On Tue, 12 Oct 1999, Philip Blundell wrote:

> >QUESTION: I've got a kernel I'm developing and I'd like to add the initial
> >server to the kernel's elf file (this makes loading easier for me because
> >its hard to deal with more then one elf file with my firmware) by adding
> >it to its own section with its own segment description. I tried using
> >objcopy but it doesn't give you any way of adding a new segment
> >descriptor! When I try to set the section flag to loadable it complains
> >the section is not assosiated with any segment.
> >     I want to add the initial server as a binary file to the kernel
> >elf executable AFTER the kernel executable is linked. 
> 
> Adding a new section to an executable is not a particularly meaningful thing 
> to do.  In the execution view of ELF it is mostly segments that matter, which 
> is probably why objcopy is complaining.
> 
> Could you explain what you want to do with this new section?

        The firmward loads a single ELF file into the address specified by
the lma for each program segment. I want to add a program segment (and
acompanying section) which is the initial server (init) to the kernel ELF
executable and set its lma to the address it will be loaded to (it
executes in place in a one-one PA/VA mapped address space). So the net
effect is I want one ELF file containning the kernel segments and the
initial server binary.
        If you need more detail I can post the code.

        Cheers Adam

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to