Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この質問は、elf ファイルのシンボル (変数、関数など) を取得する方法を説明するのに最適です。
シンボルができたので、それらがどの場所 (モジュール) にあるかを知りたいと思います。
たとえば、ファイルで構成されるプログラムをコンパイルするとmain.c、someFile.hとsomeFile.c. また、main.cプログラムにグローバル変数int Counter が含まれているとします。次に、変数Counterが main.c にあることをどのように確認できますか?
main.c
someFile.h
someFile.c
答えはここにあります。.