LinuxQuestions.org
Visit Jeremy's Blog.
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 02-26-2009, 08:11 AM   #1
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 17
Getting symbol names from an ELF file


Hi All,

I am looking for a way to retrieve all the symbol names from a relocatable ELF file. I believe that all the names are stored in the string table, but I do not know exactly how to get the offset starting from where all symbol names will get stored.

Thanks,
 
Old 02-26-2009, 08:25 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Code:
readelf -s name_of_elf
see man readelf for further details.
 
  


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
HP-UX ld: Mismatched ABI (not an ELF file) dayalan_cse Other *NIX 0 03-25-2007 10:19 AM
Accessing ELF of the executable file ? vishalbutte Programming 3 12-30-2005 01:52 PM
Utility to get ELF file information praj_linux Linux - Software 0 01-04-2005 08:30 AM
ELF file OS ABI invalid man26 Linux - General 0 07-29-2004 06:54 AM
iptables depmod not an elf file? ForumKid Linux - General 1 09-27-2003 07:39 AM


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