236Chapter7 • Miscellaneous Tools
8048469: 68 e8 84 04 08 push $0x80484e8
804846e: e8 c9 fe ff ff call 804833c <_init+0x58>
8048473: 83 c4 10 add $0x10,%esp
}
7.7.6.5Displaying Information about Library Files
The command can also be used to display information about library files. The following
command displays information about the library file
libcommon.a
and shows the object file
names from which this library is built.
[root@boota]# objdump -a libcommon.a
In archive ../../chap-04/make/libcommon.a:
common.o: file format elf32-i386
rw-r--r-- 0/0 11668 Nov 13 19:48 2001 common.o
ftp.o: file format elf32-i386
rw-r--r-- 0/0 11824 Nov 13 19:53 2001 ftp.o
[root@boota ltrace]#
Common options that are used with this command are listed in Table 7-5.
7.7.7Using the size Utility
The
size
utility displays sizes of each section in an object file. The following command dis-
plays sizes for the object file
a.out
.
[root@boota]# size a.out
text data bss dec hex filename
1015 232 24 1271 4f7 a.out
[root@boota]#
Table7-5 Common options used with objdump command
OptionDescription
-a
Display information about library files
--debugging
Show debugging information
-d
Disassemble an object file
-f
Show file headers summary
-S
Display source code with disassembly information
-t
Display symbol table entries
Next Page >>
<< Previous Page
Back to the Table of Contents