[Celinux-dev] shared library support for uClinux?

Greg Ungerer gerg at snapgear.com
Wed Aug 23 05:54:23 PDT 2006


Shawn Kwon wrote:
> Thank you for your reply.
> It sounds like both RidgeRun and SnapGear method
> is somehow incorporated to the 2.6.x kernel.
> I will look into the code.

RidgeRun never released their code, so it isn't incorporated
anywhere (not in 2.6 kernels and not in any freely available
2.4 sources).

The shared flat files (what you call the SnapGear method)
is in the older 2.4 kernels and all 2.6 kernels. It is
only supported on m68knommu targets. This isn't an
architectural limitation - just the only place anyone
ever bothered to support it.


> (http://linuxdevices.com/articles/AT3186625227.html
> says that RidgeRun approach uses ELF format file
> and SnapGear approach uses flat file format.

Can't say much about the RidgeRun implementation myself,
never got to see the code.

Regards
Greg



> I wondered for 2.4.x uClinux kernel actually.
> If you have something to say about 2.4.x, 
> that would be very good.
> 
> Thanks very much anyway.
> 
> 
> -----Original Message-----
> From: Paul Mundt [mailto:lethal at linux-sh.org] 
> Sent: Wednesday, August 23, 2006 5:17 PM
> To: Shawn Kwon
> Cc: celinux-dev at tree.celinuxforum.org
> Subject: Re: [Celinux-dev] shared library support for uClinux?
> 
> On Wed, Aug 23, 2006 at 05:02:32PM +0900, Shawn Kwon wrote:
>> Hi, I have been trying to find a way to use shared library support for
>> uClinux.
>>
>> As you know, being MMU-less means that there is no hardware to handle 
>> shared library operation so developing on uClinux will probably mean that
>> no shared library support.
>>
> No, being MMU-less has nothing to do with whether you can do shared
> libraries or not, you just aren't able to do COW.
> 
> At the moment there are two options for shared support, there's a shared
> flat format (grep the kernel for CONFIG_BINFMT_SHARED_FLAT), and then
> there's support for FDPIC ELF (currently only implemented for FR-V).
> Look at fs/Kconfig.binfmt in a recent 2.6 kernel to get a better idea of
> your options.
> 
> Barring that, you may also want to post your inquiry to uClinux-dev, as
> it's a more appropriate forum for these questions.
> 
> 
> _______________________________________________
> Celinux-dev mailing list
> Celinux-dev at tree.celinuxforum.org
> http://tree.celinuxforum.org/mailman/listinfo/celinux-dev
> 



More information about the Celinux-dev mailing list