Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Understanding nm command output Post 302494316 by yatrik007 on Sunday 6th of February 2011 11:02:06 PM
Old 02-07-2011
Understanding nm command output

After running nm command on any object file from out put can we get to know that wheather a symbol is a call to a function or definition of function ?

I am searching a class and function definitions inside many .so files.
I have 3 files which contain the symbol but I don't know wheather they are calling that function and class or they actually define it.

The command I am using is -

nm libmonitor.so | grep "ETD"

here ETD is the class I am looking for.
 

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Ifconfig output - help understanding flags 'Smart, Simplex', etc

Hi - Trying to understand a few things from an ifconfig -a output - can't seem to find info anywhere on the net. Specifically - looking to understand the following: Flags=8863 Smart Running (is this the same as UP) Simplex inet6 supported media: autoselect - does that imply the... (1 Reply)
Discussion started by: littlefrog
1 Replies

2. UNIX for Dummies Questions & Answers

Help Understanding Output and question about /dev/

Hi, I am having some problems understanding the info from the following output: Disk /dev/sda: 17849 cylinders, 255 heads, 63 sectors/track Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sda1 *... (5 Replies)
Discussion started by: mojoman
5 Replies

3. Shell Programming and Scripting

understanding mv command

hi i was moving a file from one directory to another with the following cmmand mv /home/hsghh/dfd/parent/file.txt . while doing so i i accidently mv /home/hsghh/dfd/dfd . although i gave ctrl c and terminate the move command some of the file are missing in the parent directory and... (1 Reply)
Discussion started by: saravanan71184
1 Replies

4. UNIX for Dummies Questions & Answers

Understanding the output command

Could you please explain me whats happening in the below code, appreciate your help, Thank you. /product/apps/informatica/v7/pc/ExtProc/NewDAC/dacRecBuilder.sh /product/apps/informatica/v7/pc/TgtFiles/NEW_DAC/DAC_Pos_TradeInv_Records.out ... (5 Replies)
Discussion started by: Ariean
5 Replies

5. Shell Programming and Scripting

Understanding the output of TOP

ok, so I have a script im running on a linux box that uses "egrep" a lot. now, when i run this script, i check the TOP to see how much system resource it is using. the "top" command gives the following output: last pid: 25384; load avg: 1.06, 1.04, 0.76; up 351+06:30:24 ... (0 Replies)
Discussion started by: SkySmart
0 Replies

6. Solaris

Understanding 'du' command

Hi I have a questions related 2 commands : 'du' and 'ls'. Why is the difference between output of 'du' and 'ls' cmd's ? Command 'du' : ------------------ jakubn@server1 /home/jakubn $ du -s * 4 engine.ksh 1331 scripts 'du -s *' ---> shows block count size on disk (512 Bytes... (5 Replies)
Discussion started by: presul
5 Replies

7. Shell Programming and Scripting

Understanding the output of fwtmp

Hi all, First time post, so please be gentle. :) I'm writing a Solaris 10 ksh script to retrieve details of logins and logouts using specific user names. The details I want are quite basic - the username, the computer logged in from, and the date and time the user logged in and logged off.... (6 Replies)
Discussion started by: confusedAdmin
6 Replies

8. Red Hat

Command understanding the output file destination in case of standard output!!!!!

I ran the following command. cat abc.c > abc.c I got message the following message from command cat: cat: abc.c : input file is same as the output file How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies

9. UNIX for Advanced & Expert Users

Understanding output of "last" command

Hello, Been looking through Google, and I don't see a direct answer to this: # last ... abcd pts/1 srever02 Mon Feb 23 07:56 - 07:56 (00:00) abcd sshd server02 Mon Feb 23 07:56 - 07:56 (00:00) klmn sshd ... (2 Replies)
Discussion started by: kitykitykity
2 Replies

10. Shell Programming and Scripting

Insert title as output of command to appended file if no output from command

I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place. What I need The following command is placed at the prompt: TICLI... (4 Replies)
Discussion started by: jbrass
4 Replies
elfdump(1)						      General Commands Manual							elfdump(1)

NAME
elfdump - dump information contained in object files. SYNOPSIS
num] num2] name] section] num] num2] files... DESCRIPTION
takes one or more object files or libraries and dumps information about them. The following options are supported: Dumps archive headers from an archive library. Dumps the string table(s). (Modifier) Demangles C++ symbol names before printing them. This modifier is valid with and If specified with this modifier is ignored. If specified with name, the symbol whose unmangled name matches name will be printed, and its symbol name will be printed as a demangled name. Prints the .note section which contains the compilation unit dictionary and linker footprint. This option has the same effect as Prints the compilation unit dictionary of the .notes section. Prints the linker footprint of the .notes section. The linker footprint has information on the linker used to generate the file as well as the link time. (Modifier) Prints the section whose index is num. (Modifier) Prints the sections in the range 1 to num2. If used with the sections in the range num to num2 are printed. Valid with If used with only the relocations which apply to the section(s) in the range are printed. Dumps the file header (ELF header). Dumps global symbols from an archive. Dumps the section headers. (Modifier) Dumps output information in hexadecimal, octal, or decimal format, with all options. Displays the run-time interpreter path name for (usually the location of the dynamic loader and microloader). Only shared bound executables have this string. To change the setting, use the command. Prints the object dictionary for one or more executable files, if the source file was compiled with the option or linked with (PA-RISC only) option. The object dictionary entry contains the name of the object file that contributed to a particular section, the relative offset within the section, size of the object file's contribution, and attributes of the entry. Prints the CTTI section headers according to the directory member relationship. Dumps the section in shared libraries and dynamically linked program files. Prints the section, which is only created when the incremental linker is used (with the command), or when the linker option is used (which is the default), along with the compiler option, (which is NOT the default). Prints the section, which is only created when the incremental linker is used (with the command), or when the linker option is used (which is the default), along with the compiler option, (which is NOT the default). Prints the section, which is only created when the incremental linker is used (with the command), or when the linker option is used (which is the default), along with the compiler option, (which is NOT the default). (Modifier) Dumps information about the specified section or symbol name. This option is valid with and If used with name pertains to a symbol name and will only dump the symbol entry whose name matches name. If used with the other options, name pertains to a section name and will only dump the section whose name matches it. Dumps the optional headers (program headers). (Modifier) Do not print titles, with all options. (Modifier) Suppresses printing CTTI section headers. Valid with option. Dumps the relocations. Dumps the section contents. Dumps any section beginning with as a string table. (Modifier) Dumps the section specified by name. Valid with and only. (Modifier) Dumps output information in short format. Valid with the and options. Dumps the symbol table entries. (Itanium-based systems) Dumps the value of in symbol table, in addition to information dump from option. This option is useful to verify the data stored in the symbol table. Prints the symbol whose index is num. (Modifier) Prints the symbols in the range 0 to num2. If used with print the symbols in the range num to num2. Valid with Prints versioned symbols. Prints the usage menu. Prints the unwind table. (Modifier) Verifies the CTTI section headers before printing. Valid with the option. Prints the version number for EXAMPLES
To see the functions exported from a shared library: To see the global data items exported from a shared library: To display string table information To list the shared libraries linked with a program or shared library (dependent libraries): To list the embedded path for shared libraries opened by a program: SEE ALSO
System Tools ld(1) Invoke the link editor Miscellaneous a.out(4) Assembler, compiler, and linker output elf(3E) Executable and Linking Format Texts and Tutorials (See the option) (See manuals(5) for ordering information)
All times are GMT -4. The time now is 05:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy