LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-27-2013, 02:58 AM   #1
rangi-vivek
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Rep: Reputation: Disabled
linux nm tool


Hi!
I am using linux nm tool to analyse functions inside a linux ELF executable. The command I am using is "nm -l <executable name>". But the command does not show file name and path for some C/C++ functions. It does not happen in all cases and it shows currect file names and paths for the rest of the functions. I am using latest version of nm. Any idea or fix to this problem.
Regards,
Vivek
 
Old 02-27-2013, 04:51 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Welcome to LQ.

$ man nm ( http://unixhelp.ed.ac.uk/CGI/man-cgi?nm )
-l : If line number information can be found,
print it after the other symbol information.

I.e. no such information, unless the code is compiled with [ -g ] :
http://www.network-theory.co.uk/docs...cintro_37.html
"" 5. Normally, an executable file does not contain any references
to the original program source code ...
... GCC provides the -g debug option to store additional
debugging information in object files and executables. ""

-
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GNOME Tweak Tool - A tool for changing specialised or advanced GNOME3 settings LXer Syndicated Linux News 0 10-12-2011 11:50 PM
Cross-tool 0.42: Tool-chain compilation process fail ueagle Linux From Scratch 2 03-26-2011 03:43 AM
URLSCAN tool MS = Linux tool ? OB1 Linux - Security 3 10-05-2002 12:58 AM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration