|
From: <jen...@ta...> - 2010-09-22 08:08:00
|
Hi John,
Sorry for getting back to you late, I was out of the office yesterday.
I just tried the "readelf" command on our red-hat linux box, and got
the following print out:
jennyo@curium 09:02:07 valgrind $ readelf --segments
./coregrind/valgrind
Elf file type is EXEC (Executable file)
Entry point 0x88e8
There are 8 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg
Align
EXIDX 0x003604 0x0000b604 0x0000b604 0x000a8 0x000a8 R 0x4
PHDR 0x000034 0x00008034 0x00008034 0x00100 0x00100 R E 0x4
INTERP 0x000134 0x00008134 0x00008134 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.3]
LOAD 0x000000 0x00008000 0x00008000 0x036ac 0x036ac R E
0x8000
LOAD 0x0036ac 0x000136ac 0x000136ac 0x00190 0x011a0 RW
0x8000
DYNAMIC 0x0036b8 0x000136b8 0x000136b8 0x000f0 0x000f0 RW 0x4
NOTE 0x000148 0x00008148 0x00008148 0x00020 0x00020 R 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4
Section to Segment mapping:
Segment Sections...
00 .ARM.exidx
01
02 .interp
03 .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version
.gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata
.ARM.extab .ARM.exidx
04 .init_array .fini_array .jcr .dynamic .got .data .bss
05 .dynamic
06 .note.ABI-tag
07
And then I checked on our arm-linux box, under \lib directory as the
following:
camera # cd /lib
camera # ls -lh
total 7.2M
-rwxr-xr-x 1 root root 28K Jan 1 1970 klibc-0.so
-rwxr-xr-x 1 root root 127K Jan 1 1970 ld-2.3.5.so
lrwxrwxrwx 1 root root 16 Jan 1 1970 ld-linux.so.2 ->
/lib/ld-2.3.5.so
-rwxr-xr-x 1 root root 8.8K Jan 1 1970 libBrokenLocale-2.3.5.so
lrwxrwxrwx 1 root root 29 Jan 1 1970 libBrokenLocale.so.1 ->
/lib/libBrokenLocale-2.3.5.so
-rwxr-xr-x 1 root root 20K Jan 1 1970 libanl-2.3.5.so
lrwxrwxrwx 1 root root 20 Jan 1 1970 libanl.so.1 ->
/lib/libanl-2.3.5.so
lrwxrwxrwx 1 root root 20 Jan 1 1970 libapm.so ->
/lib/libapm.so.1.0.0
lrwxrwxrwx 1 root root 20 Jan 1 1970 libapm.so.1 ->
/lib/libapm.so.1.0.0
---------- 1 755 root 15K Jan 1 1970 libapm.so.1.0.0
-rwxr-xr-x 1 root root 1.4M Jan 1 1970 libc-2.3.5.so
lrwxrwxrwx 1 root root 18 Jan 1 1970 libc.so.6 ->
/lib/libc-2.3.5.so
-rwxr-xr-x 1 root root 28K Jan 1 1970 libcrypt-2.3.5.so
lrwxrwxrwx 1 root root 22 Jan 1 1970 libcrypt.so.1 ->
/lib/libcrypt-2.3.5.so
-rwxr-xr-x 1 root root 16K Jan 1 1970 libdl-2.3.5.so
lrwxrwxrwx 1 root root 19 Jan 1 1970 libdl.so.2 ->
/lib/libdl-2.3.5.so
lrwxrwxrwx 1 root root 18 Jan 1 1970 libgcc_s.so ->
/lib/libgcc_s.so.1
-rwxr-xr-x 1 root root 56K Jan 1 1970 libgcc_s.so.1
-r-xr-xr-x 1 root root 428K Jan 1 1970 libjwsmtp-1.32.so
-rwxr-xr-x 1 root root 764K Jan 1 1970 libm-2.3.5.so
lrwxrwxrwx 1 root root 18 Jan 1 1970 libm.so.6 ->
/lib/libm-2.3.5.so
-rwxr-xr-x 1 root root 93K Jan 1 1970 libnsl-2.3.5.so
lrwxrwxrwx 1 root root 20 Jan 1 1970 libnsl.so.1 ->
/lib/libnsl-2.3.5.so
-rwxr-xr-x 1 root root 39K Jan 1 1970 libnss_compat-2.3.5.so
lrwxrwxrwx 1 root root 27 Jan 1 1970 libnss_compat.so.2 ->
/lib/libnss_compat-2.3.5.so
-rwxr-xr-x 1 root root 23K Jan 1 1970 libnss_dns-2.3.5.so
lrwxrwxrwx 1 root root 24 Jan 1 1970 libnss_dns.so.2 ->
/lib/libnss_dns-2.3.5.so
-rwxr-xr-x 1 root root 50K Jan 1 1970 libnss_files-2.3.5.so
lrwxrwxrwx 1 root root 26 Jan 1 1970 libnss_files.so.2 ->
/lib/libnss_files-2.3.5.so
-rwxr-xr-x 1 root root 24K Jan 1 1970 libnss_hesiod-2.3.5.so
lrwxrwxrwx 1 root root 27 Jan 1 1970 libnss_hesiod.so.2 ->
/lib/libnss_hesiod-2.3.5.so
-rwxr-xr-x 1 root root 50K Jan 1 1970 libnss_nis-2.3.5.so
lrwxrwxrwx 1 root root 24 Jan 1 1970 libnss_nis.so.2 ->
/lib/libnss_nis-2.3.5.so
-rwxr-xr-x 1 root root 58K Jan 1 1970 libnss_nisplus-2.3.5.so
lrwxrwxrwx 1 root root 28 Jan 1 1970 libnss_nisplus.so.2 ->
/lib/libnss_nisplus-2.3.5.so
-rwxr-xr-x 1 root root 9.1K Jan 1 1970 libpcprofile.so
-rwxr-xr-x 1 root root 52K Jan 1 1970 libproc-3.2.5.so
-rwxr-xr-x 1 root root 95K Jan 1 1970 libpthread-0.10.so
lrwxrwxrwx 1 root root 23 Jan 1 1970 libpthread.so.0 ->
/lib/libpthread-0.10.so
-rwxr-xr-x 1 root root 77K Jan 1 1970 libresolv-2.3.5.so
lrwxrwxrwx 1 root root 23 Jan 1 1970 libresolv.so.2 ->
/lib/libresolv-2.3.5.so
-rwxr-xr-x 1 root root 44K Jan 1 1970 librt-2.3.5.so
lrwxrwxrwx 1 root root 19 Jan 1 1970 librt.so.1 ->
/lib/librt-2.3.5.so
lrwxrwxrwx 1 root root 23 Jan 1 1970 libstdc++.so ->
/lib/libstdc++.so.6.0.1
lrwxrwxrwx 1 root root 23 Jan 1 1970 libstdc++.so.6 ->
/lib/libstdc++.so.6.0.1
-rwxr-xr-x 1 root root 3.7M Jan 1 1970 libstdc++.so.6.0.1
-rwxr-xr-x 1 root root 28K Jan 1 1970 libthread_db-1.0.so
lrwxrwxrwx 1 root root 24 Jan 1 1970 libthread_db.so.1 ->
/lib/libthread_db-1.0.so
-rwxr-xr-x 1 root root 15K Jan 1 1970 libutil-2.3.5.so
lrwxrwxrwx 1 root root 21 Jan 1 1970 libutil.so.1 ->
/lib/libutil-2.3.5.so
drwxr-xr-x 3 root root 0 Jan 1 1970 modules
camera #
I wonder is there something missiing on our arm-linux box?
Thanks for the help!
Jenny
-----Original Message-----
From: John Reiser <jr...@bi...>
To: val...@li...
Sent: Mon, 20 Sep 2010 17:11
Subject: Re: [Valgrind-developers] valgrind can not be located on
target platform
> But when I run "./coregrind/valgrind", I got the same error "No such
> file or directory".
Such a message might arise "mysteriously" because the Linux operating
system kernel cannot find the PT_INTERP that is requested by an
executable
that is named in an execve() system call from the shell. It is the
shell
which gets the ENOENT, then writes "No such file or directory."
In order to diagnose this, run "readelf --segments ./coregrind/valgrind"
and look for the PT_INTERP segment, such as this example on x86_64:
$ readelf --segments ./coregrind/valgrind
INTERP 0x0000000000000200 0x0000000000400200
0x0000000000400200
0x000000000000001c 0x000000000000001c R 1
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
The file "/lib64/ld-linux-x86-64.so.2" must exist on the target,
and have eXecute permissions, etc.
--
-------------------------------------------------------------------------
-----
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Valgrind-developers mailing list
Val...@li...
https://lists.sourceforge.net/lists/listinfo/valgrind-developers
|