Problem Description:==================== Sometimes it is desirable to parse the output of a gdb command and feed it to a following command.in the following example, I want to get the start address of "ld-linux-x86-64.so.2" and use it as thesecond parameter of add-symbol-file. (gdb) startTe Read More
posted @ 2011-08-25 15:06 欢乐盛开 Views(1096) Comments(1) Diggs(0)
用GDB观察共享库函数的翻译过程研究了一下共享库函数是怎样加载到当前进程中的.开始共享库函数地址放在GOT中,第一次调用时,ld将其翻译成函数在程序空间的真实地址.用GDB跟踪了一下整个过程,记录在下面. PLT (Procedure Linkage Table) 和 GOT (Global Offset Table)背景,google. -------------------------------------------------------------------------------### 准备 ###### 环境Ubuntu 11.04 amd64,### 安装libc de.. Read More
posted @ 2011-08-18 17:00 欢乐盛开 Views(3306) Comments(1) Diggs(0)