質問

This question does a great job explaining how to get the symbols (variables, functions, etc) of an elf file.

Now that I have the symbols I will like to know on what location (module) they are.

For example if I compile a program that consists of the files main.c, someFile.h and someFile.c . Also let's say that the main.c program contains the global variable int Counter. then how I be able to tell that variable Counter is located in main.c?

役に立ちましたか?

解決

the Answer is in here. .

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top