Actually I want to make a loader to load an ELF file. The kernel ocupy
the upper 1G space.If the loader is in userspace,it will occupy the
userspace(from about 0x804800 ),howerver the elf that'll be loaded also
wants to occupy the userspace(from 0x804800 too ) so as not to be
relocated so much. I have found two ways to do it : 1. make a linker script
to change the address space of the loader which is different to the ELF
that'll be loaded. 2. make the loader to be a loadeble module so it'll be
in the kernel space.
How does wine do it?
2010/7/10 Mulyadi Santosa <[email protected]>
> On Sat, Jul 10, 2010 at 02:13, Greg KH <[email protected]> wrote:
> > On Fri, Jul 09, 2010 at 03:07:53PM +0800, Hei Xia wrote:
> >> Hi.
> >> I want to add anther file format interpreter to the kernel.
> >
> > Why? You can do this from userspace today, right? It shouldn't need to
> > be in the kernel.
>
> Greg is talking about "misc" binary format, I believe...you turn it on
> in kernel options and then you create the interpreter in user space.
>
> Hint: just like Wine does....
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>