Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 10:20:36 -0800
From:      Artem Belevich <art@freebsd.org>
To:        Yuri <yuri@rawbw.com>
Cc:        emulation@freebsd.org
Subject:   Re: Why ldd(1) launches linux apps?
Message-ID:  <CAFqOu6j%2Banp1PFqCSkshmrc7vqPDr4=Csnv2sh0Ae-77Lzb5oQ@mail.gmail.com>
In-Reply-To: <4F4CA10E.3070508@rawbw.com>
References:  <4F4CA10E.3070508@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
lss just sets TRACE_LOADED_OBJECTS environment variable and then execs
the binary.
FreeBSD's dynamic linker then checks for that variable and, if set,
just prints out loaded objects and then exists.

When you run ldd on a linux binary, it's *Linux* dynamic linker that
gets launched and it may have different way of triggering the trace.

That said, ldd seems to work fine on linux binaries on FreeBSD-7, but
does indeed launch linux binary in 8-STABLE, so something has changed.

If you do 'env LD_TRACE_LOADED_OBJECTS=1 /compat/linux/bin/cp' on
8-STABLE it still works fine.

--Artem

On Tue, Feb 28, 2012 at 1:40 AM, Yuri <yuri@rawbw.com> wrote:
> I noticed the strange thing.
> ldd(1) launches all linux apps I tried (skype, acroread9). And it doesn't
> launch BSD apps.
>
> Is this a knows issue?
>
> Yuri
> _______________________________________________
> freebsd-emulation@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
> To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFqOu6j%2Banp1PFqCSkshmrc7vqPDr4=Csnv2sh0Ae-77Lzb5oQ>