The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
@ symbol at UNIX prompt san HP-UX 2 11-05-2008 07:53 AM
How to type the Omega symbol Ω in unix shell script NagaMurugesan Shell Programming and Scripting 1 05-15-2008 12:23 PM
How to view users in unix jerome UNIX for Dummies Questions & Answers 6 06-09-2006 03:44 PM
no symbol table Dom_Cyrus High Level Programming 2 01-31-2006 09:15 AM
How to view ps and pdf file under unix vicky20000 UNIX for Dummies Questions & Answers 2 01-08-2004 11:47 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-13-2008
saravanan_nitt saravanan_nitt is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 1
Question how to view symbol table in unix

hi ,
How to view the contents of a "c" program symbol table information in unix.
  #2 (permalink)  
Old 02-14-2008
H2OBoodle H2OBoodle is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 18
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0