The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to type the Omega symbol Ω in unix shell script NagaMurugesan Shell Programming and Scripting 1 05-15-2008 09:23 AM
How to view users in unix jerome UNIX for Dummies Questions & Answers 6 06-09-2006 12:44 PM
no symbol table Dom_Cyrus High Level Programming 2 01-31-2006 05:15 AM
@ symbol at UNIX prompt san HP-UX 1 12-19-2005 08:42 PM
How to view ps and pdf file under unix vicky20000 UNIX for Dummies Questions & Answers 2 01-08-2004 07:47 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
Stumble this Post!
Question how to view symbol table in unix

hi ,
How to view the contents of a "c" program symbol table information in unix.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-13-2008
Registered User
 

Join Date: Jan 2008
Posts: 18
Stumble this Post!
Here's an example of dumping the symbols from an object file (hello world in foo.c -> foo.o):

me@mine:~$ objdump -t foo.o

foo.o: file format elf32-i386

SYMBOL TABLE:
00000000 l df *ABS* 00000000 foo.c
00000000 l d .text 00000000 .text
00000000 l d .data 00000000 .data
00000000 l d .bss 00000000 .bss
00000000 l d .rodata 00000000 .rodata
00000000 l d .note.GNU-stack 00000000 .note.GNU-stack
00000000 l d .comment 00000000 .comment
00000000 g F .text 00000026 main
00000000 *UND* 00000000 puts
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0