LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-03-2008, 07:36 AM   #1
ashok449
Member
 
Registered: Sep 2007
Location: noida
Distribution: suse
Posts: 63

Rep: Reputation: 16
Shared Objects in Embedded Linux Filesystem


Dear All,

I just wondering why we require Shared Objects in Embedded Linux Filesystem, i.e, on flash/hard disk.

I found an embedded device with Shared Objects in Filesystem. Normally libraries are needed at the time of compilation why its still in the filesystem.

Any help is appreciable ...


-Ashok
 
Old 07-03-2008, 06:49 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,691
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Can you give a specific example?
 
Old 07-03-2008, 09:55 PM   #3
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
They aren't required, you can compile everything static, but if you have a lot of apps using the same libraries you'll waste a lot of space, which is why they are mostly left as shared.
 
Old 07-03-2008, 11:43 PM   #4
ashok449
Member
 
Registered: Sep 2007
Location: noida
Distribution: suse
Posts: 63

Original Poster
Rep: Reputation: 16
Thnaks all for that,

you are right these are used by many application.

here are some of the source obects on the device, these are used at compile time but why we need on target/device filesystem.


# ls -l
-rwxr-xr-x 1 500 500 35892 Jun 30 2008 libclt.so.1.0.1
-rwxr-xr-x 1 500 500 60986 Jul 3 2008 libcmn.so.1.0.1
-rwxr-xr-x 1 500 500 155701 Jun 30 2008 libstdsoap2.so.1.0.1
-rwxr-xr-x 1 500 500 48664 Jun 30 2008 libsvr.so.1.0.1
 
Old 07-04-2008, 09:02 AM   #5
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
The reason you need them at run time is because they aren't included in your application. At compile time the linker figures out which of the libraries your application will need and puts in appropriate tags but doesn't include those libraries in the application. Then when you run the application the libraries get pulled in and used.

If you compile your application statically then the libraries do get included, your application size gets much larger, but you don't need the libraries at run time.
 
Old 07-06-2008, 05:55 AM   #6
ashok449
Member
 
Registered: Sep 2007
Location: noida
Distribution: suse
Posts: 63

Original Poster
Rep: Reputation: 16
Now I got it , Thanks for all.


I love open source and wishes to all who involved in open source development.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create shared objects and how are they useful jeevanladhe Programming 4 05-01-2007 01:41 PM
any links on linking, loading shared libraries, shared objects. etc? ananthbv Programming 0 02-03-2005 07:47 AM
Creating Shared objects Anup Kumar Programming 1 09-11-2004 11:45 PM
g++ missing shared objects pinguwin Linux - Software 0 05-27-2004 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration