ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] eu-elflint
Date: Fri, 18 Dec 2009 05:23:20 +0300
Message-ID: <20091218022320.GA32403@wo.int.altlinux.org> (raw)
In-Reply-To: <20091218000542.GQ9864@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]

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.

It needs /proc to work due to $ORIGIN thing it uses:

with-proc$ ltrace -s64 -e dlopen eu-elflint --quiet --gnu-ld /bin/true 
dlopen("$ORIGIN/../$LIB/elfutils/libebl_x86_64.so", 1) = 0x1227d810
+++ exited (status 0) +++

without-proc$ strace -eopen eu-elflint --quiet --gnu-ld /bin/pwd
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/lib64/libelf.so.1", O_RDONLY) = 3
open("/lib64/libdl.so.2", O_RDONLY)     = 3
open("/lib64/libc.so.6", O_RDONLY)      = 3
open("/bin/pwd", O_RDONLY)              = 3
open("/etc/ld.so.cache", O_RDONLY)      = 4
open("/lib64/tls/x86_64/libebl_x86_64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libebl_x86_64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib64/x86_64/libebl_x86_64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib64/libebl_x86_64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/x86_64/libebl_x86_64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/libebl_x86_64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/x86_64/libebl_x86_64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/libebl_x86_64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
section [ 9] '.rela.dyn': relocation 0: invalid type
[...]
section [10] '.rela.plt': relocation 50: invalid type


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2009-12-18  2:23 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-17 21:52 ` [devel] 5.1 FAILED cgal.git=3.5-alt0.M51.1 Alexey Tourbin
2009-12-17 21:59   ` Alexey Tourbin
2009-12-17 22:44     ` Dmitry V. Levin
2009-12-18  0:05       ` Alexey Tourbin
2009-12-18  0:59         ` [devel] elflint Alexey Tourbin
2009-12-18  3:21           ` Dmitry V. Levin
2009-12-18 17:27             ` Alexey Tourbin
2009-12-18 17:44               ` Dmitry V. Levin
2009-12-18  2:23         ` Dmitry V. Levin [this message]
2009-12-18  2:49           ` [devel] eu-elflint Alexey Tourbin
2009-12-19  0:26         ` [devel] verify-elf lint=normal (elflint) Alexey Tourbin
2009-12-19 19:50           ` Dmitry V. Levin
2009-12-19 21:03             ` Alexey Tourbin
2009-12-19 21:42               ` Dmitry V. Levin
2009-12-19 23:57                 ` Alexey Tourbin
2009-12-20  2:37                   ` Alexey Tourbin
2009-12-21  6:06                     ` REAL
2009-12-21  6:02                       ` Alexey Tourbin
2009-12-21  6:25                         ` REAL
2009-12-21 18:06                           ` [devel] [SOLVED] " Alexey Tourbin
2009-12-22  3:34                             ` [devel] CMAKE please (was: [SOLVED] verify-elf lint=normal (elflint)) REAL
2009-12-21 20:08                   ` [devel] verify-elf lint=normal (elflint) Dmitry V. Levin
2009-12-21 20:54                     ` Michael Shigorin
2009-12-22  7:12                       ` Anton Farygin
2009-12-24  0:57                     ` Alexey Tourbin
2009-12-24  4:33                       ` Alexey Tourbin
2009-12-21  8:47           ` Anton V. Boyarshinov
2009-12-21 10:55             ` Anton V. Boyarshinov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091218022320.GA32403@wo.int.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git