Nm command Problems

Source: Internet
Author: User
Nm command problems-general Linux technology-Linux programming and kernel information, the following is a detailed description. Who can explain the meaning of the nm output items ??


Hello. c is the source file, and hello. o is the compiled file.
/* Hello. c */



# Include



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

{

Printf ("Hello, World! \ N ");

Return 0;

}


The following content appears after you input nm hello. o. What does it mean ??


/*.................................................................................................................. ............

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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.