Re: How to find out what libraries a binary calls?
- From: "composlinuxmisc" <altcomphardware@xxxxxxxxxxx>
- Date: 30 Aug 2006 17:19:57 -0700
ynotssor wrote:
"composlinuxmisc" <altcomphardware@xxxxxxxxxxx> wrote in message
news:1156979845.206927.60010@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is there a way for me to tell what library a binary calls?
Examine the output of "strace binary".
Thanks ynotssor. The following is the "grep'ed lib" output of:
strace -o output.txt ls-dyna
--------------------------
stat("/opt/intel/fce/9.1.036/lib/tls/x86_64", 0x7fffffb1fc90) = -1
ENOENT (No such file or directory)
open("/opt/intel/fce/9.1.036/lib/tls/libpthread.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat("/opt/intel/fce/9.1.036/lib/tls", 0x7fffffb1fc90) = -1 ENOENT (No
such file or directory)
open("/opt/intel/fce/9.1.036/lib/x86_64/libpthread.so.0", O_RDONLY) =
-1 ENOENT (No such file or directory)
stat("/opt/intel/fce/9.1.036/lib/x86_64", 0x7fffffb1fc90) = -1 ENOENT
(No such file or directory)
open("/opt/intel/fce/9.1.036/lib/libpthread.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat("/opt/intel/fce/9.1.036/lib", {st_mode=S_IFDIR|0755, st_size=1512,
....}) = 0
open("/usr/pgi/linux86-64/5.2/lib/tls/x86_64/libpthread.so.0",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/pgi/linux86-64/5.2/lib/tls/x86_64", 0x7fffffb1fc90) = -1
ENOENT (No such file or directory)
open("/usr/pgi/linux86-64/5.2/lib/tls/libpthread.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat("/usr/pgi/linux86-64/5.2/lib/tls", 0x7fffffb1fc90) = -1 ENOENT (No
such file or directory)
open("/usr/pgi/linux86-64/5.2/lib/x86_64/libpthread.so.0", O_RDONLY) =
-1 ENOENT (No such file or directory)
stat("/usr/pgi/linux86-64/5.2/lib/x86_64", 0x7fffffb1fc90) = -1 ENOENT
(No such file or directory)
open("/usr/pgi/linux86-64/5.2/lib/libpthread.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat("/usr/pgi/linux86-64/5.2/lib", 0x7fffffb1fc90) = -1 ENOENT (No
such file or directory)
open("/lib64/tls/libpthread.so.0", O_RDONLY) = 3
open("/opt/intel/fce/9.1.036/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/lib64/tls/libc.so.6", O_RDONLY) = 3
open("/opt/intel/fce/9.1.036/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/lib64/tls/libm.so.6", O_RDONLY) = 3
--------------------------
Does it look right considering that I'm running it on an AMD64 CPU?
.
- References:
- How to find out what libraries a binary calls?
- From: composlinuxmisc
- Re: How to find out what libraries a binary calls?
- From: ynotssor
- How to find out what libraries a binary calls?
- Prev by Date: Re: How to find out what libraries a binary calls?
- Next by Date: Re: Scheduling Jobs - Last day of the month - HOWTO?
- Previous by thread: Re: How to find out what libraries a binary calls?
- Next by thread: Re: How to find out what libraries a binary calls?
- Index(es):
Relevant Pages
|