LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2010, 01:13 AM   #1
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
Unhappy how to see shared objects code


Hi all,

I want to know that is there any way to peep inside the shared object and see its code ????

Regards
_Linux_Learner
 
Old 06-30-2010, 03:02 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 672

Rep: Reputation: 94
what do you mean by "peep inside the shared objects"? if you want to see the original code then it's almost impossible to translate back to it (there's several tools for java).

doing a dissamble is easier but output is asm code.

check out the sources if there's open.
 
Old 06-30-2010, 03:13 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,301

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
May be .. (examples)

hexedit /usr/lib/libstdc++.so.6
readelf -s /usr/lib/libstdc++.so.6

.. if that is, what you want to watch.
..
 
Old 06-30-2010, 03:23 AM   #4
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
objdump may be your friend.

I just tried:
objdump -Dslx /lib/libcap.so.2|more
but you want to look at the man page

another tool I use is strace (to debug system calls in a program execution). Not the same usage at all, but maybe you need that.
 
1 members found this post helpful.
Old 06-30-2010, 09:29 AM   #5
_Linux_Learner
Member
 
Registered: Feb 2010
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by 16pide View Post
objdump may be your friend.

I just tried:
objdump -Dslx /lib/libcap.so.2|more
but you want to look at the man page

another tool I use is strace (to debug system calls in a program execution). Not the same usage at all, but maybe you need that.
Ok this commands worked well for me and I achieved the goal.. Thanks all
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 a shared memory and some shared objects in linux? jeremy28 Programming 6 06-11-2010 05:21 AM
Shared Objects mohotmofine Programming 4 10-12-2009 05:46 PM
any links on linking, loading shared libraries, shared objects. etc? ananthbv Programming 0 02-03-2005 07:47 AM


All times are GMT -5. The time now is 07:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration