Re: how to add anther file format interpreter to the kernel?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2010年7月10日 上午10:11,Hei Xia <heixia108@xxxxxxxxx> 写道:
>      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?
>
http://www.winehq.org/docs/winedev-guide/c2722#INITIALIZATION
The development documents in the wine official website give the
explanation about it.

>
>
> 2010/7/10 Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx>
>>
>> On Sat, Jul 10, 2010 at 02:13, Greg KH <greg@xxxxxxxxx> 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
>
>



-- 
Best Regards
Lin

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux