戻る

busybox の 関係する lib

コピー元

$ pwd
/home/ggg/proj/buildroot
$ ls build_i386/root/lib
ld-uClibc-0.9.27.so*  libgcc_s.so.1         libresolv.so.0@
ld-uClibc.so.0@       libm-0.9.27.so        librt-0.9.27.so
libc.so.0@            libm.so.0@            librt.so.0@
libcrypt-0.9.27.so    libnsl-0.9.27.so      libthread_db-0.9.27.so
libcrypt.so.0@        libnsl.so.0@          libthread_db.so.1@
libdl-0.9.27.so       libpthread-0.9.27.so  libuClibc-0.9.27.so
libdl.so.0@           libpthread.so.0@      libutil-0.9.27.so
libgcc_s.so@          libresolv-0.9.27.so   libutil.so.0@
$ ls -l  build_i386/root/lib/libm.so.0 | awk '{printf "%-12s\t%4s\t%12s\n",$9,$10,$11}'
build_i386/root/lib/libm.so.0     ->    libm-0.9.27.so
$ ls -l  build_i386/root/lib/libcrypt.so.0 | awk '{printf "%-12s\t%4s\t%12s\n",$9,$10,$11}'
build_i386/root/lib/libcrypt.so.0         ->    libcrypt-0.9.27.so
$ ls -l  build_i386/root/lib/libc.so.0 | awk '{printf "%-12s\t%4s\t%12s\n",$9,$10,$11}'
build_i386/root/lib/libc.so.0     ->    libuClibc-0.9.27.so
$ ls -l  build_i386/root/lib/libgcc_s.so | awk '{printf "%-12s\t%4s\t%12s\n",$9,$10,$11}'
build_i386/root/lib/libgcc_s.so   ->    libgcc_s.so.1
$ readelf -d  build_i386/root/bin/busybox | grep NEEDED
 0x00000001 (NEEDED)                     共有ライブラリ: [libm.so.0]
 0x00000001 (NEEDED)                     共有ライブラリ: [libcrypt.so.0]
 0x00000001 (NEEDED)                     共有ライブラリ: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     共有ライブラリ: [libc.so.0]

コピー先

# df | sed 2d
Filesystem           1k-blocks      Used Available Use% Mounted on /home/oboot/003_final_root/a_files/initrd
                          3745      2600      1145  70% /home/oboot/003_final_root/a_files/qmt
# pwd
/home/oboot/003_final_root/a_files/qmt
# ls lib
ld-uClibc-0.9.23.so*  libgcc_s.so@       libncurses.so.5@
ld-uClibc.so.0@       libgcc_s.so.0.9.9  libncurses.so.5.2*
libc.so.0@            libm-0.9.23.so     libuClibc-0.9.23.so
libdl-0.9.23.so       libm.so.0@         modules/
libdl.so.0@           libncurses.so@
# ls -l lib/libm.so.0 | awk '{printf "%-12s\t%4s\t%12s\n",$9,$10,$11}'
qmt/lib/libm.so.0         ->    libm-0.9.23.so
# ls -l lib/libc.so.0 | awk '{printf "%-12s\t%4s\t%12s\n",$9,$10,$11}'
qmt/lib/libc.so.0         ->    libuClibc-0.9.23.so
# ls -l lib/libgcc_s.so | awk '{printf "%-12s\t%4s\t%12s\n",$9,$10,$11}'
qmt/lib/libgcc_s.so       ->    libgcc_s.so.0.9.9
# readelf -d  bin/busybox | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libm.so.0]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.0.9.9]
 0x00000001 (NEEDED)                     Shared library: [libc.so.0]

にゃんたろう 拝!

2010年 5月 2日 (日) 22:21:28 JST 作成


戻る

Copyright © 2006.-2010. nyantarou All Rights Reserved.