红联Linux门户
Linux帮助

nm命令的问题

发布时间:2008-11-24 11:51:18来源:红联作者:henkluck
谁能解释nm输出各项的含义??


hello.c是源文件,hello.o是编译后的文件
/*hello.c*/



#include



int main(int argc, char *argv[])

{

printf("Hello,World!\n");

return 0;

}


,输入nm hello.o后出现以下的内容,请问是什么意思??


/*………………………………………………………………………………………………………………

hello.o :

080494a4 D _DYNAMIC

08049570 D _GLOBAL_OFFSET_TABLE_

08048478 R _IO_stdin_used

w _Jv_RegisterClasses

08049494 d __CTOR_END__

08049490 d __CTOR_LIST__

0804949c d __DTOR_END__

08049498 d __DTOR_LIST__

0804848c r __FRAME_END__

080494a0 d __JCR_END__

080494a0 d __JCR_LIST__

08049590 A __bss_start

08049584 D __data_start

08048434 t __do_global_ctors_aux

08048308 t __do_global_dtors_aux

08049588 D __dso_handle

08049490 A __fini_array_end

08049490 A __fini_array_start

w __gmon_start__

08049490 A __init_array_end

08049490 A __init_array_start

080483f0 T __libc_csu_fini

0804839c T __libc_csu_init

U __libc_start_main@@GLIBC_2.0

08049490 A __preinit_array_end

08049490 A __preinit_array_start

08049590 A _edata

08049594 A _end

08048458 T _fini

08048474 R _fp_hw

08048278 T _init

080482c0 T _start

080482e4 t call_gmon_start

08049590 b completed.1

08049584 W data_start

0804833c t frame_dummy

08048368 T main

0804958c d p.0

U printf@@GLIBC_2.0
文章评论

共有 0 条评论