2017-10-18

Next -- ldd VS. ldd (GNU libc) 2.25


ldd VS. ldd (GNU libc) 2.25

/usr/share/flash/libflashplayer.so: ELF 32-bit LSB shared object, Intel 80386

root@slitaz:~# ldd /usr/share/flash/libflashplayer.so
/usr/share/flash/libflashplayer.so:
realpath: /lib64/ld-linux-x86-64.so.2: No such file or directory

slitaz-base-files
view rootfs/usr/bin/ldd @ rev 333
http://hg.slitaz.org/slitaz-base-files/file/9e80adfca421/rootfs/usr/bin/ldd
line source
    1 #!/bin/sh
    2 #
    3 # Tiny ldd fake.
    4 # Copyright (C) 2010-2017 SliTaz GNU/Linux.
    5 #
    6 echo
    7 file="$@"
    8 for file do
    9     file="$(which "$file")"
    10     [ ! -f "$file" ] && exit
    11     ld="$(sed '/\/lib.*\/ld/!dq' "$file")"
    12     echo "$file" | sed 's%^./%%;s%$%:%'
    13     LD_TRACE_LOADED_OBJECTS=1 "$(realpath ${ld:-/lib/ld-linux*})" "$file" 2>/dev/null
    14     echo
    15 done


root@slitaz:~# ldd --version
ldd (GNU libc) 2.25
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

root@slitaz:~# head /usr/bin/ldd
#! /bin/bash
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
# This file is part of the GNU C Library.

# The GNU C Library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

# The GNU C Library is distributed in the hope that it will be useful,


root@slitaz:~# ldd /usr/share/flash/libflashplayer.so
linux-gate.so.1 (0xb77b5000)
libGL.so.1 => /usr/lib/libGL.so.1 (0xb67f2000)
libdl.so.2 => /lib/libdl.so.2 (0xb67ed000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb67cf000)
librt.so.1 => /lib/librt.so.1 (0xb67c6000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb669e000)
libXt.so.6 => /usr/lib/libXt.so.6 (0xb6646000)
libnss3.so => /usr/lib/libnss3.so (0xb64f7000)
libsmime3.so => /usr/lib/libsmime3.so (0xb64cb000)
libssl3.so => /usr/lib/libssl3.so (0xb6476000)
libnspr4.so => /usr/lib/libnspr4.so (0xb6433000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb60bc000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb602c000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6009000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb5fc2000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb5f82000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb5f3b000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb5e37000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb5d9a000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb5c6b000)
libm.so.6 => /lib/libm.so.6 (0xb5c0e000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb5bf5000)
libc.so.6 => /lib/libc.so.6 (0xb5a6a000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb5a4a000)
libxcb-dri3.so.0 => /usr/lib/libxcb-dri3.so.0 (0xb5a46000)
libxcb-present.so.0 => /usr/lib/libxcb-present.so.0 (0xb5a42000)
libxcb-sync.so.1 => /usr/lib/libxcb-sync.so.1 (0xb5a3b000)
libxshmfence.so.1 => /usr/lib/libxshmfence.so.1 (0xb5a38000)
libglapi.so.0 => /usr/lib/libglapi.so.0 (0xb5a1c000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb5a18000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb5a11000)
libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0xb5a0e000)
libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0xb59f4000)
libxcb-dri2.so.0 => /usr/lib/libxcb-dri2.so.0 (0xb59ec000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb59e6000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb59d4000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb59ad000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb59a9000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb59a2000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb5991000)
/lib/ld-linux.so.2 (0x80049000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb5988000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb5982000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb5969000)
libnssutil3.so => /usr/lib/libnssutil3.so (0xb593f000)
libplc4.so => /usr/lib/libplc4.so (0xb5937000)
libplds4.so => /usr/lib/libplds4.so (0xb5932000)
libz.so.1 => /lib/libz.so.1 (0xb591d000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb5919000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb590b000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb58e6000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb57f3000)
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb575e000)
libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0xb575a000)
libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0xb574c000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb5742000)
libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb5598000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb5593000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb557c000)
libmount.so.1 => /lib/libmount.so.1 (0xb552a000)
libblkid.so.1 => /lib/libblkid.so.1 (0xb54e2000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb54cc000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb54c9000)
libffi.so.6 => /usr/lib/libffi.so.6 (0xb54c1000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb537f000)
liblzma.so.5 => /lib/liblzma.so.5 (0xb5361000)
libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0xb52ea000)
libpcre.so.1 => /lib/libpcre.so.1 (0xb5287000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb5275000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0xb5242000)
root@slitaz:~#