Libc - Version herausfinden & andere Fragen
Florian Lohoff
flo at rfc822.org
Mon Aug 28 14:01:05 CEST 2000
On Mon, Aug 28, 2000 at 01:35:55PM +0200, Achim Neumann wrote:
> On Mon, Aug 28, 2000 at 01:16:02PM +0200, Florian Lohoff wrote:
> >
> > (flo at ping)~# ldd --version
> > ldd: invalid option -- -
> > ldd: version 1.9.11
>
> Es scheint unterschiedliche Versionen vom ldd zu geben:
>
> aneu at silk:~ > ldd --version
> ldd (GNU libc) 2.1.2
> Copyright (C) 1999 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.
>
> aneu at silk:~ > ls -l /lib/libc.so.6
> -rwxr-xr-x 1 root root 4223971 Nov 6 1999 /lib/libc.so.6
>
> aneu at silk:~ > strings /lib/libc.so.6 | grep Library
> GNU C Library stable release version 2.1.2, by Roland McGrath et al.
>
> Selbst der Linker ist distributionsabhaengig ?
ldd ist nicht der linker...
Es gibt einen "linker" der zum compiler gehoert - In diesem
fall "ld" und ist bestandteil von "binutils". Dann gibt es
einen "dynamischen linker" der dafuer verantwortlich ist zur
laufzeit das programm mit den "librarys" (windows deutschs dlls)
zu verbinden. Dieser nennt sich ld.so oder ld-linux.so
mgr1:~# ldd /bin/ls
libc.so.6 => /lib/libc.so.6 (0x40015000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Hier auch zu finden.
"ldd" ist im falle von debian bestandteil des "ld.so" paketes
was nicht wirklich den ld.so sondern nur die helpertools
wie "ldconfig" und "ldd" enthaelt.
---------------------
This package contains my ELF dynamic linkers (ld-linux.so.1), dynamic
linker library (libdl.so.1) and utilities (ldconfig and ldd) for Linux.
You need Linux kernel 2.0.0 or later with ELF support compiled in
(i.e. not loaded as a module) to use this package.
---------------------
Der dynamische linker selber ist bestandteil der glibc/libc.
Ich vermute das die glibc selber auch ein "ldd" enthaelt
das aber bei debian keine verwendung findet.
Flo
--
Florian Lohoff flo at rfc822.org +49-5201-669912
"Write only memory - Oops. Time for my medication again ..."
-
Hinweise zur Benutzung dieser (und anderer Mailing-Listen) bitte beachten:
--> http://lug-owl.de/mailinglist_hints.html <--
More information about the Linux
mailing list