Get location of symbols in a.out file

2019-08-30 04:35发布

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?

1条回答
▲ chillily
2楼-- · 2019-08-30 05:08

the Answer is in here. .

查看更多
登录 后发表回答