Get location of symbols in a.out file
问题 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: the Answer is in here. . 来源: https:/