获取a.out文件中符号的位置 [英] Get location of symbols in a.out file

查看:181
本文介绍了获取a.out文件中符号的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题确实很棒解释如何获得一个精灵文件的符号(变量,函数等)。

现在我已经知道他们在哪个位置(模块)的符号。例如,如果我编译一个由文件 main.c 组成的程序, someFile.h someFile.c 。我们还可以说 main.c 程序包含全局变量 int Counter。,那么我怎样才能知道变量 Counter 位于main.c中?

解决方案

答案位于此处。 。


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. .

这篇关于获取a.out文件中符号的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆