how objdump handles global variables

前端 未结 1 469
一整个雨季
一整个雨季 2021-01-28 06:22

I have made the following dummy code for testing

/tmp/test.c contains the following:

#include \"test.h\"
#include 
#include 

        
相关标签:
1条回答
  • 2021-01-28 07:26

    The .o file is not yet executable, there'll be relocation entries pointing to those 0's which the linker will fixup later. Since your source file seems mostly self-contained, can you drop the -c flag to produce an (fully linked) executable rather than a relocatable object file?

    0 讨论(0)
提交回复
热议问题