2

Given a function pointer which is obtained dynamically using dlsym, how can I tell Ghidra that that pointer points to a function in another .so that I have open in same project for which I have already done some parameter renaming etc.

1 Answer 1

3

If you follow the function pointer to where the actual function's address is in your first binary, you should see something similar to this.

00870808 09 00 00 80     addr      <EXTERNAL>::Function_Something

Right click the operand (the <EXTERNAL>... part) and select 'Edit External Location'. A new dialog window will pop up.

In this window, click the 'Edit' button next to the 'Path' field and select your .so file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.