Sponsored Content
Top Forums Programming how to view symbol table in unix Post 302166846 by saravanan_nitt on Wednesday 13th of February 2008 01:26:27 AM
Old 02-13-2008
Question how to view symbol table in unix

hi ,
How to view the contents of a "c" program symbol table information in unix.
 

8 More Discussions You Might Find Interesting

1. Programming

no symbol table

Hi@all, I try to compile c code on hpux 11.11 pa-risc 2 with gcc (32bit). I compile with the option -g, so that I get the symbol table, but it is not available. Does someone knows something on this? thx (2 Replies)
Discussion started by: Dom_Cyrus
2 Replies

2. Linux

Reading ELF file Symbol table of C++ program

Folks, I have some program(Test.cpp) as follows, #include<iostream> class Abc { private: int _theVar; public : int printVar(); }; int Abc :: printVar() { _theVar=10; } main() { Abc _t; (0 Replies)
Discussion started by: vinod_chitrali
0 Replies

3. Programming

Reading ELF file Symbol table of C++ program

Folks, I have some program(Test.cpp) as follows, #include<iostream> class Abc { private: int _theVar; public : int printVar(); }; int Abc :: printVar() { _theVar=10; } main() { Abc _t; (2 Replies)
Discussion started by: vinod_chitrali
2 Replies

4. Programming

Symbol table of a C program

Hi, is there any command to see symbol table info. will it show where its allocating memory for varibales golbals & locals and code.(i mean the segments). i read there is a section called read only data segment and this is where initialized data such as strings stores. i have wriiten the... (7 Replies)
Discussion started by: MrUser
7 Replies

5. Solaris

/usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found

deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies

6. Shell Programming and Scripting

Read Table,View,Package,Function and Procedure Name in a File

Hi I am new to Unix shell scripting. But i need help to slove the below issue. Issue description: I want to read table, view names and package names in a file my plan to find the table name is : search "From" key word find the table or view To find the packge name : Search "Package... (5 Replies)
Discussion started by: sboss
5 Replies

7. Shell Programming and Scripting

Table or view is not exist

If I select the statement on db is ok, but same statement on UNIX script I get table or view is not exist. what should I do?:( (5 Replies)
Discussion started by: Hscript
5 Replies

8. Programming

Search the symbol table of a child process

Hi, I am a newbie in Linux land, and I have a question about programming parent/child process interaction: How do I search the value of a symbol in the child process? Is it possible? I am doing a fork() and execve() to spawn any child possible, and I need something on the parent side to... (12 Replies)
Discussion started by: alphakili
12 Replies
elfdump(1)							   User Commands							elfdump(1)

NAME
elfdump - dumps selected parts of an object file SYNOPSIS
elfdump [-cCdegGhHiklmnprsuvy] [-N name] [-w file] filename... DESCRIPTION
The elfdump utility symbolically dumps selected parts of the specified object file(s). The options allow specific portions of the file to be displayed. The elfdump utility is similar in function to the dump(1) utility. The dump utility offers an older and less user-friendly interface than elfdump, although dump might be more appropriate for certain uses such as in shell scripts. Archive files, produced by ar(1), can also be inspected with elfdump. In this case, each object within the archive is processed using the options supplied. For a complete description of the displayed information, refer to the Linker and Libraries Guide. OPTIONS
The following options are supported: -c Dumps section header information. -C Demangles C++ symbol names. -d Dumps the contents of the .dynamic section. -e Dumps the ELF header. -g Dumps the contents of the .group section. -G Dumps the contents of the .got section. -h Dumps the contents of the .hash section. -H Dumps the contents of the .SUNW_cap hardware and software capabilities section. -i Dumps the contents of the .interp section. -k Calculates the ELF checksum. See gelf_checksum(3ELF). -l Displays long section names without truncation. -m Dumps the contents of the .SUNW_move section. -n Dumps the contents of the .note section. -N name Qualifies an option with a specific name. For example, in a file that contains more than one symbol table, the .dynsym ta- ble can be displayed using: example% elfdump -s -N .dynsym filename -p Dumps the program headers. -r Dumps the contents of the .rel[a] relocation sections. -s Dumps the contents of the .dynsym and .symtab symbol table sections. For archives, the archive symbol table is also dumped. Individual sections can be specified with the -N option. An archive symbol table can be specified using the special section name -N ARSYM. In the case of core files, the shndx field will have the value "unknown" since the field does not contain the valid values. In addition to the standard symbol table information, the version definition index of the symbol is also provided under the ver heading. -u Dumps the contents of a frame unwind. -v Dumps the contents of the .SUNW_version version sections. -w file Writes the contents of a section that is specified with the -N option, to the named file. For example, extracting the .text section of a file can be carried out with: example% elfdump -w text.out -N .text filename -y Dumps the contents of the .SUNW_syminfo section. OPERANDS
The following operand is supported: filename The name of the specified object file. FILES
liblddbg.so linker debugging library ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbtool | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ SEE ALSO
ar(1), dump(1), nm(1), pvs(1), elf(3ELF), attributes(5) Linker and Libraries Guide SunOS 5.10 4 Oct 2004 elfdump(1)
All times are GMT -4. The time now is 08:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy