From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 18 Dec 2009 05:49:49 +0300 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20091218024948.GS9864@altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20091217211624.GA3586@ssh.git.orion.altlinux.org> <20091217215238.GN9864@altlinux.org> <20091217215921.GO9864@altlinux.org> <20091217224429.GA28428@wo.int.altlinux.org> <20091218000542.GQ9864@altlinux.org> <20091218022320.GA32403@wo.int.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+k4Drb7WGefOwc9B" Content-Disposition: inline In-Reply-To: <20091218022320.GA32403@wo.int.altlinux.org> Subject: Re: [devel] eu-elflint 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: Fri, 18 Dec 2009 02:49:49 -0000 Archived-At: List-Archive: List-Post: --+k4Drb7WGefOwc9B Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 18, 2009 at 05:23:20AM +0300, Dmitry V. Levin wrote: > On Fri, Dec 18, 2009 at 03:05:42AM +0300, Alexey Tourbin wrote: > > Actually I think maybe we should integrate eu-elflint into > > /usr/lib/rpm/verify-elf. It has --gnu-ld flag to stop barking > > at binutils semi-bugs, and otherwise it's useful. >=20 > It needs /proc to work due to $ORIGIN thing it uses: >=20 > with-proc$ ltrace -s64 -e dlopen eu-elflint --quiet --gnu-ld /bin/true=20 > dlopen("$ORIGIN/../$LIB/elfutils/libebl_x86_64.so", 1) =3D 0x1227d810 > +++ exited (status 0) +++ >=20 > without-proc$ strace -eopen eu-elflint --quiet --gnu-ld /bin/pwd > open("/etc/ld.so.cache", O_RDONLY) =3D 3 > open("/usr/lib64/libelf.so.1", O_RDONLY) =3D 3 > open("/lib64/libdl.so.2", O_RDONLY) =3D 3 > open("/lib64/libc.so.6", O_RDONLY) =3D 3 > open("/bin/pwd", O_RDONLY) =3D 3 > open("/etc/ld.so.cache", O_RDONLY) =3D 4 > open("/lib64/tls/x86_64/libebl_x86_64.so", O_RDONLY) =3D -1 ENOENT (No su= ch file or directory) > open("/lib64/tls/libebl_x86_64.so", O_RDONLY) =3D -1 ENOENT (No such file= or directory) > open("/lib64/x86_64/libebl_x86_64.so", O_RDONLY) =3D -1 ENOENT (No such f= ile or directory) > open("/lib64/libebl_x86_64.so", O_RDONLY) =3D -1 ENOENT (No such file or = directory) > open("/usr/lib64/tls/x86_64/libebl_x86_64.so", O_RDONLY) =3D -1 ENOENT (N= o such file or directory) > open("/usr/lib64/tls/libebl_x86_64.so", O_RDONLY) =3D -1 ENOENT (No such = file or directory) > open("/usr/lib64/x86_64/libebl_x86_64.so", O_RDONLY) =3D -1 ENOENT (No su= ch file or directory) > open("/usr/lib64/libebl_x86_64.so", O_RDONLY) =3D -1 ENOENT (No such file= or directory) > section [ 9] '.rela.dyn': relocation 0: invalid type > [...] > section [10] '.rela.plt': relocation 50: invalid type We can use something like verify-elf: LD_LIBRARY_PATH=3D@LIBDIR@/elfutils eu-elflint... rpm.spec: Requires: %_libdir/elfutils --+k4Drb7WGefOwc9B Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAksq7cwACgkQfBKgtDjnu0Y3JQCfbdqtZsFZE6mUGjKnc0elk/IN 7QgAoLsUXFaeHRMaN6lZp15O0k8DK74U =rZuW -----END PGP SIGNATURE----- --+k4Drb7WGefOwc9B--