Here goes:
run: file {/usr,}/lib/libbz2*
> should get exact result:
> /usr/lib/libbz2.so: symbolic link to `../../lib/libbz2.so.1.0'
> /lib/libbz2.so.1.0: symbolic link to `libbz2.so.1.0.6'
> /lib/libbz2.so.1.0.6: ELF 64-bit LSB shared object, x86-64, version 1
> (SYSV), dynamically linked, stripped
>
root:/sources/bzip2-1.0.6# file {/usr,}/lib/libbz2*
/usr/lib/libbz2.a: current ar archive
/usr/lib/libbz2.so: symbolic link to ../../lib/libbz2.so.1.0
/lib/libbz2.so.1.0: symbolic link to libbz2.so.1.0.6
/lib/libbz2.so.1.0.6: ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked, not stripped
Not an exact match. I pick up libbz2.a and the library in the last line is
not stripped in mine.
> run: file /bin/bunzip2
> should get exact result:
> /bin/bunzip2: symbolic link to `bzip2'
>
root:/sources/bzip2-1.0.6# file /bin/bunzip2
/bin/bunzip2: symbolic link to bzip2
> run: readelf -e /bin/bzip2 | grep interpr
> should get exact result:
> [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
>
root:/sources/bzip2-1.0.6# readelf -e /bin/bzip2 | grep interpr
[Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2]
(why is mine going to */tools*?)
run: readelf -d /bin/bzip2 | grep NEEDED
> should get exact result:
> 0x0000000000000001 (NEEDED) Shared library: [libbz2.so.1.0]
> 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
>
root:/sources/bzip2-1.0.6# readelf -d /bin/bzip2 | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libbz2.so.1.0]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
Glenn
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style