Separating Global/Heap/Stack accesses
I am instrumenting a program on x86 platform to collect its memory references. The output is something like <instr address>,<read/write>,<data address>
. After the memory references are collected I need to separate the Global/Heap/Stack accesses in the obtained output. I can somewhat figure out the global variables of the program with hints from the objdump of the program(.bss/.data section). But what how can I find out that a given data address belongs to stack, heap or is a global location defined by a library?
上一篇: 为什么堆栈内存大小如此有限?
下一篇: 分离全局/堆/堆栈访问