From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.2.5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=nBmFGTUcA2AHMnsgIeBj4sSaIH+r4ihI/qI5EHdYKzU=; b=K9HpZTrsPgUsvsmoiIdBedC2CZvCH0O5h+qVEJpLZ3Ba3WX1uMD7sSFzUmpHFC2H0y 6g1Knima2IMbwnKnVqdKg9DNuIFvTLFQ73FW7YduFHzdnHTgTszrxKi9M8HI3EsGEyxu i0DTyycKMkuJWC708IU8tIVP0ZCBOvvwid/bY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=kcVNPKHrbfJ70UNeNpoEyDuH6Sx2eivWOZTB6gQ6rLIoLht3tQk8XOZfuRGnepQrNw Bw8/z5ozXmvJkS9YKMSQT44NvzMXlm1tfyCfO0OfEw9wj7AEogrReEdZz/1UMWGguR+k xCUFVIcwUYIoaAkyzFQDAMkP9bXY65pb7pk5M= MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 24 Jan 2010 02:43:20 +0000 Message-ID: From: Max Ivanov To: ALT Linux Team development discussions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [devel] hasher, rpath, $ORIGIN X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2010 02:43:36 -0000 Archived-At: List-Archive: List-Post: =D0=95=D1=89=D0=B5 =D0=B7=D0=B0=D0=B1=D1=8B=D0=BB =D0=B4=D0=BE=D0=B1=D0=B0= =D0=B2=D0=B8=D1=82=D1=8C =D0=B2 =D0=BA=D0=BE=D0=BF=D0=B8=D0=BB=D0=BA=D1=83 = =D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=BD=D0=BE=D1=81=D1=82=D0=B5=D0=B9: 1) $ ldd -r /usr/lib/jvm/java/bin/javac linux-gate.so.1 =3D> (0xb77c0000) libpthread.so.0 =3D> /lib/libpthread.so.0 (0xb779f000) libjli.so =3D> /usr/lib/jvm/java/bin/../jre/lib/i386/jli/libjli.so (0xb7796000) libdl.so.2 =3D> /lib/libdl.so.2 (0xb7791000) libc.so.6 =3D> /lib/libc.so.6 (0xb7639000) /lib/ld-linux.so.2 (0xb77c1000) 2) $ LD_DEBUG=3Dlibs /usr/lib/jvm/java/bin/javac .... 10692: find library=3Dlibjli.so [0]; searching 10692: search path=3Dtls/i686/sse2:tls/i686:tls/sse2:tls:i686/sse2:i686:sse2: (RPATH from file /usr/lib/jvm/java/bin/javac) 10692: trying file=3Dtls/i686/sse2/libjli.so 10692: trying file=3Dtls/i686/libjli.so 10692: trying file=3Dtls/sse2/libjli.so 10692: trying file=3Dtls/libjli.so 10692: trying file=3Di686/sse2/libjli.so 10692: trying file=3Di686/libjli.so 10692: trying file=3Dsse2/libjli.so 10692: trying file=3Dlibjli.so 10692: search cache=3D/etc/ld.so.cache 10692: search path=3D/lib/tls/i686/sse2:/lib/tls/i686:/lib/tls/sse2:/lib/tls:/lib/i686/ss= e2:/lib/i686:/lib/sse2:/lib:/usr/lib/tls/i686/sse2:/usr/lib/tls/i686:/usr/l= ib/tls/sse2:/usr/lib/tls:/usr/lib/i686/sse2:/usr/lib/i686:/usr/lib/sse2:/us= r/lib (system search path) 10692: trying file=3D/lib/tls/i686/sse2/libjli.so 10692: trying file=3D/lib/tls/i686/libjli.so 10692: trying file=3D/lib/tls/sse2/libjli.so 10692: trying file=3D/lib/tls/libjli.so 10692: trying file=3D/lib/i686/sse2/libjli.so 10692: trying file=3D/lib/i686/libjli.so 10692: trying file=3D/lib/sse2/libjli.so 10692: trying file=3D/lib/libjli.so 10692: trying file=3D/usr/lib/tls/i686/sse2/libjli.so 10692: trying file=3D/usr/lib/tls/i686/libjli.so 10692: trying file=3D/usr/lib/tls/sse2/libjli.so 10692: trying file=3D/usr/lib/tls/libjli.so 10692: trying file=3D/usr/lib/i686/sse2/libjli.so 10692: trying file=3D/usr/lib/i686/libjli.so 10692: trying file=3D/usr/lib/sse2/libjli.so 10692: trying file=3D/usr/lib/libjli.so 24.01.10, Max Ivanov =D0=BD=D0=B0=D0=BF=D0=B8=D1=81= =D0=B0=D0=BB(=D0=B0): > =D0=9F=D0=BE=D1=87=D0=B5=D0=BC=D1=83-=D1=82=D0=BE javac (=D0=BE=D1=82 sun= ) =D0=B1=D1=83=D0=B4=D1=83=D1=87=D0=B8 =D0=BF=D0=BE=D1=81=D1=82=D0=B0=D0=B2= =D0=BB=D0=B5=D0=BD=D0=BD=D1=8B=D0=BC =D0=B2 hasher =D0=BD=D0=B5 =D0=B2=D0= =B8=D0=B4=D0=B8=D1=82 > libjli.so, =D0=B2 =D1=85=D0=BE=D1=81=D1=82 =D1=81=D0=B8=D1=81=D1=82=D0=B5= =D0=BC=D0=B5 =D0=B2=D1=81=D0=B5 =D0=BE=D0=BA. =D0=9D=D0=B8=D1=87=D0=B5=D0= =B3=D0=BE =D0=BD=D0=B5 =D0=BF=D0=BE=D0=BD=D0=B8=D0=BC=D0=B0=D1=8E :) > > [builder@rbnote bin]$ readelf -a ./javac |grep jli > 0x00000001 (NEEDED) Shared library: [libjli.so] > 0x0000000f (RPATH) Library rpath: > [$ORIGIN/../lib/i386/jli:$ORIGIN/../jre/lib/i386/jli] > 0x0030: Version: 1 File: libjli.so Cnt: 1 > > =D0=9F=D1=80=D0=B8 =D1=8D=D1=82=D0=BE=D0=BC strace javac =D0=BD=D0=B5 =D0= =BF=D0=BE=D0=BA=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82 =D0=B4=D0=B0=D0= =B6=D0=B5 =D0=BF=D0=BE=D0=BF=D1=8B=D1=82=D0=BE=D0=BA =D0=BF=D0=BE=D0=B8=D1= =81=D0=BA=D0=B0 =D0=BF=D0=BE rpath, > =D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE =D1=81=D1=82=D0=B0=D0=BD=D0=B4=D0=B0= =D1=80=D1=82=D0=BD=D1=8B=D0=B5 =D0=BF=D1=83=D1=82=D0=B8 =3D( > > =D0=92=D0=BE=D0=BF=D1=80=D0=BE=D1=81 =D1=81=D1=82=D0=B0=D0=BD=D0=B4=D0=B0= =D1=80=D1=82=D0=BD=D1=8B=D0=B9, =D0=B3=D0=B4=D0=B5 =D0=BF=D0=BE=D0=B4=D0=BA= =D1=80=D1=83=D1=82=D0=B8=D1=82=D1=8C, =D1=87=D1=82=D0=BE=D0=B1=D1=8B =D0=B7= =D0=B0=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=BB=D0=BE? >