Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 1999 11:58:08 +0100
From:      Marcel Moolenaar <marcel@scc.nl>
To:        emulation@FreeBSD.ORG
Subject:   Re: /lib/ld-linux.so.2 in 2.2.8
Message-ID:  <36EF8AC0.579A296E@scc.nl>
References:  <36EEFB0C.C4A24A87@bigshed.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ken Marx wrote:

[snip]
>         /compat/linux/usr/bin/ldd
> 
> The above 'ldd' is a script that tries to actually invoke
> 
>         ld-linux.so.2 --verify $file
> 
> This makes no sense to me, but doing so definitely gives an error:
> 
>         bash: /lib/ld-linux.so.2: cannot execute binary file
> 
> (Same as any wrongly attempted execution of any .so.)
[snip]

This does also not work on 3.x systems. But since 3.x is using ELF, you can
use the FreeBSD version of ldd on those systems:

scones% pwd
/usr/compat/linux/usr/bin
scones% ./ldd gcc
./ldd: /compat/linux/lib/ld-linux.so.2: cannot execute binary file
        not a dynamic executable

scones% pwd
/usr/compat/linux/lib
scones% ./ld-linux.so.2 --verify ../usr/bin/gcc
./ld-linux.so.2: Exec format error. Wrong Architecture.

scones% which ldd
/usr/bin/ldd
scones% ldd ../usr/bin/gcc
../usr/bin/gcc:
        libc.so.6 => /lib/libc.so.6 (0x28060000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x28053000)

marcel


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36EF8AC0.579A296E>