230Chapter7 • Miscellaneous Tools
08049508 . __EH_FRAME_BEGIN__
08049508 . __FRAME_END__
080495e0 A __bss_start
w __cxa_finalize@@GLIBC_2.1.3
080494f8 D __data_start
w __deregister_frame_info@@GLIBC_2.0
08048480 t __do_global_ctors_aux
080483b0 t __do_global_dtors_aux
w __gmon_start__
U __libc_start_main@@GLIBC_2.0
w __register_frame_info@@GLIBC_2.0
080495e0 A _edata
080495f8 A _end
080484c0 . _fini
080484e0 R _fp_hw
080482e4 . _init
08048360 T _start
08048384 t call_gmon_start
08049504 d completed.1
080494f8 W data_start
08048410 t fini_dummy
08049508 d force_to_data
08049508 d force_to_data
08048420 t frame_dummy
08048384 t gcc2_compiled.
080483b0 t gcc2_compiled.
08048480 t gcc2_compiled.
080484c0 t gcc2_compiled.
08048460 t gcc2_compiled.
08048450 t init_dummy
080484b0 t init_dummy
08048460 T main
080495e0 b object.2
08049500 d p.0
U printf@@GLIBC_2.0
[root@boota make]#
7.7.3.1Listing Line Numbers in Source Files
Use of –
l
option is very useful with this command. This option also displays filenames
and line numbers where these symbols are used. The following command lists symbols in
lib-
common.a
file in more detail. Note that it displays the path to the source code file and the line
number. This information is used in the debugging process.
[root@boota]# nm -s libcommon.a -l
Archive index:
msg in common.o
main in ftp.o
Next Page >>
<< Previous Page
Back to the Table of Contents