Finding out what libraries are needed for an executable

bridged with qnx.rtos
Post Reply
Kevin Miller

Finding out what libraries are needed for an executable

Post by Kevin Miller » Tue May 08, 2007 11:27 pm

Is there an easy way to find out what DLLs an executable wants, without
actually trying to run it?

John Garvey

Re: Finding out what libraries are needed for an executable

Post by John Garvey » Tue May 08, 2007 11:50 pm

Kevin Miller wrote:
Is there an easy way to find out what DLLs an executable wants, without
actually trying to run it?
ldd?

$ ldd `which gdb`
/usr/bin/gdb:
libm.so.2 => /lib/libm.so.2 (0xb8200000)
libsocket.so.2 => /lib/libsocket.so.2 (0xb821c000)
libc.so.2 => /usr/lib/ldqnx.so.2 (0xb0300000)

Armin

Re: Finding out what libraries are needed for an executable

Post by Armin » Wed May 09, 2007 8:57 am

Kevin Miller wrote:
Is there an easy way to find out what DLLs an executable wants, without
actually trying to run it?
objdump -x <name> | grep NEEDED


--Armin

Post Reply

Return to “qnx.rtos”