how to view symbol table in unix | Unix Linux Forums | Programming

  Go Back    


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

how to view symbol table in unix

Programming


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-13-2008
saravanan_nitt saravanan_nitt is offline
Registered User
 
Join Date: Feb 2008
Last Activity: 13 February 2008, 1:47 AM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question how to view symbol table in unix

hi ,
How to view the contents of a "c" program symbol table information in unix.
Sponsored Links
    #2  
Old 02-14-2008
H2OBoodle H2OBoodle is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 22 June 2008, 7:59 PM EDT
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Symbol table of a C program MrUser Programming 7 11-05-2009 02:46 PM
Reading ELF file Symbol table of C++ program vinod_chitrali Programming 2 08-02-2009 10:54 AM
Reading ELF file Symbol table of C++ program vinod_chitrali Linux 0 08-01-2009 02:15 PM
no symbol table Dom_Cyrus Programming 2 01-31-2006 08:15 AM



All times are GMT -4. The time now is 08:11 AM.