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 08-02-2011, 11:05 AM   #1
divyavyas
LQ Newbie
 
Registered: Oct 2010
Posts: 5
Blog Entries: 1

Rep: Reputation: 0
How to see static symbol table for stripped modules like /bin/ls


How to see static symbol table for stripped modules like /bin/ls
 
Old 08-03-2011, 02:12 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,859

Rep: Reputation: 161Reputation: 161
You can use nm or objdump tool to dump symbol table.
 
Old 08-03-2011, 11:43 PM   #3
divyavyas
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Blog Entries: 1

Rep: Reputation: 0
If you do objdump --syms /bin/ls ,It will show no symbols
 
Old 08-04-2011, 01:25 AM   #4
Richard.Yang
Member
 
Registered: Sep 2008
Posts: 106

Rep: Reputation: 16
objdump use the section headers of elf file.
If the file is striped, i guess we can't find symbol?
 
Old 08-04-2011, 02:01 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
How to see static symbol table for stripped modules like /bin/ls
You will have to do that before you strip away the static symbol table.

Fedora stores debug packages for all versions. 'core-utils' example :
http://download.fedora.redhat.com/pu....fc10.i386.rpm
> coreutils-debuginfo-6.12-17.fc10.i386.rpm
cd /usr/lib/debug/bin/ && 'objdump --syms ls.debug' : Will show 760 lines symbols.


More info : Google .. static symbol table binaries ..

.
 
Old 08-05-2011, 12:03 AM   #6
divyavyas
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Thanks a lot It worked.
 
  


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
symbol table..... shariefbe Linux - Newbie 2 12-28-2008 12:34 AM
./firefox-bin :symbol lookup error:/lib/libgthread-2.0.so.0: undefined symbol: arulupsaras Linux - General 1 11-08-2008 04:48 AM
./firefox-bin: symbol lookup error: /usr/lib/libpango-1.0.so.0: undefined symbol: g_s cb8100 Slackware 3 10-05-2006 10:55 AM
symbol table Filipe Linux - Newbie 1 01-04-2006 01:15 PM
Compiling stripped down kernel deletes modules used by other kernels yougene Slackware 10 11-30-2005 01:44 AM

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

All times are GMT -5. The time now is 06:40 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