Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCC/ELF - from where comes my symbol?

There is an executable that is dynamically linked to number of shared objects. How can I determine, to which of them some symbol (imported into executable) belongs ?

If there are more than one possibility, could I silmulate ld and see from where it is being taken ?

like image 652
Dmitry Khalatov Avatar asked Dec 09 '22 22:12

Dmitry Khalatov


2 Answers

Have a look at nm(1), objdump(1) and elfdump(1).

like image 91
Charlie Martin Avatar answered Dec 30 '22 19:12

Charlie Martin


As well as the ones Charlie mentioned, "ldd" might do some of what you're looking for.

like image 32
Paul Tomblin Avatar answered Dec 30 '22 19:12

Paul Tomblin