On 1/9/14, 10:49 AM, Bill Williams wrote:
> On 01/09/2014 02:55 AM, J. Benton wrote:
>> Hi everyone,
>>
>> I'm wondering if you could help me. Using the examples in the
>> programmer's manual as a guide, I generated a simple snippet, inserting
>> a printf call upon each call to a function. After the binary is
>> rewritten I get this error when it is executed:
>>
>> symbol lookup error: /usr/lib/libdyninstAPI_RT.so: undefined symbol:
>> sizeOfAnyHeap1
>>
>> /usr/lib/libdyninstAPI_RT.so exists. I've set DYNINST_LIB to /usr/lib.
>>
>> Any ideas?
>>
> sizeOfAnyHeap1 should show up in an nm of your libdyninstAPI_RT.so,
> and libdyninstAPI_RT.so should show up in an ldd of your rewritten
> binary, assuming that everything is working correctly. Are either of
> those not the case for you?
That's a good point. The rewritten binary does not include any libraries
in the ldd list. Modifying the binary generates an empty list in the
ldd, even when the original includes a few.
J.
|