Hallo!

On 18 Mar 2004 at 19:30 +0100, Werner Mahr wrote:

> Werner1:/home/werner# file /usr/local/games/ut2003/System/ut2003-bin
> /usr/local/games/ut2003/System/ut2003-bin: ELF 32-bit LSB executable, Intel\ 
> 80386, version 1 (GNU/Linux), for GNU/Linux 2.0.0, dynamically linked (uses\ 
> shared libs), stripped
> Werner1:/home/werner# ldd /usr/local/games/ut2003/System/ut2003-bin
>         not a dynamic executable
> Werner1:/home/werner#

> Wer von beiden lügt jetzt, und wie kann das passieren?

Generell würde ich ldd eher vertrauen als file, da Letzteres seine
Ausgabe heuristisch anhand typischer Bytemuster bestimmt.

Im konkreten Fall würde ich vorschlagen, mal 'readelf' oder 'objdump'
auf die Datei loszulassen. Eine weitere Möglichkeit wäre, während das
Programm läuft ein 'cat /proc/<pid>/maps' zu machen und nach in den
Adressraum eingeblendeten Bibliotheken zu suchen.

Lässt sich mit all diesen Methoden nichts finden, dürfte file sich
schlicht irren.

Gruß,
Elmar

-- 
[ GnuPG: D8A88C0D / 2407 063C 1C92 90E9 4766 B170 5E95 0D7F D8A8 8C0D ]
·······································································
  A mouse is a device used to point at the xterm you want to type in.

Attachment: pgp00000.pgp
Description: PGP signature

Antwort per Email an