![](https://seccdn.libravatar.org/avatar/b12cfb65ca4faebc3e3aac17838e8f8d.jpg?s=120&d=mm&r=g)
On Wednesday 23 May 2007 08:55, Denis Silakov wrote:
On my openSUSE 10.2 `file /bin/su` reports the following:
/bin/su: setuid ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, stripped
and the same for some other files which are expected to be simple executables, that is, "LSB executable", like '/usr/bin/perl':
/usr/bin/perl: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux 2.6.4, stripped
Is it a bug or a specific feature? `readelf -h /bin/su` agrees with `file` reporting su to be a shared object...
What kind of bug do you suspect? Is anything malfunctioning? Almost all Linux executables have at least one dynamically linked library, the one that allows system calls to be made. Most are fully dynamically linked. Exceptions most often those designed to run on a wide variety of Linux installations and not distributed as part of or for a specific distribution. Examples include the Adobe-distributed Reader, the Mozilla Foundation-distributed Firefox, etc. Dynamic linking is used because both file size and run-time RAM requirements are significantly reduced by using dynamic linking. On my system (a 32-bit SuSE Linux 10.0 installation), there are only 25 completely statically linked binaries among those found in /bin, /usr/bin, /sbin and /usr/sbin. That is out of 2921 total binary executable.
-- Regards, Denis.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org