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] elflint
Date: Fri, 18 Dec 2009 06:21:40 +0300
Message-ID: <20091218032139.GA19657@wo.int.altlinux.org> (raw)
In-Reply-To: <20091218005928.GR9864@altlinux.org>

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

On Fri, Dec 18, 2009 at 03:59:28AM +0300, Alexey Tourbin wrote:
> Here are some findings (elflint executed on my host system).
> 
> find / /usr -xdev -type f -exec file -NF$'\t' '{}' '+' 2>/dev/null |
> awk -F'\t' '$2~/\<ELF /{print$1}' |
> xargs eu-elflint --gnu-ld |
> awk 'BEGIN{RS="\n\n"}!/No errors/'
[...]
> /usr/lib64/Mcrt1.o:
> section [ 4] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/crti.o:
> section [ 8] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/libc_stubs.a:
> section [ 8] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/crtn.o:
> section [ 6] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/libmcheck.a:
> section [ 7] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/Scrt1.o:
> section [ 8] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/crt1.o:
> section [ 8] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/libnvidianull.so:
> section [ 6] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcrt1.o:
> section [10] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/virtualbox/tstMicroGC.gc:
> section [11] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/virtualbox/VMMGC.gc:
> section [16] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/virtualbox/VBoxDDR0.r0:
> section [11] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/virtualbox/VBoxDD2GC.gc:
> section [10] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/virtualbox/VBoxDD2R0.r0:
> section [10] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/virtualbox/VBoxDDGC.gc:
> section [11] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/virtualbox/VMMR0.r0:
> section [11] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/python2.6/config/python.o:
> section [ 5] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcc/x86_64-alt-linux/4.4.2/crtfastmath.o:
> section [14] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcc/x86_64-alt-linux/4.4.2/crtendS.o:
> section [11] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcc/x86_64-alt-linux/4.4.2/crtbeginS.o:
> section [14] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcc/x86_64-alt-linux/4.4.2/crtend.o:
> section [11] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcc/x86_64-alt-linux/4.4.2/crtprec64.o:
> section [15] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcc/x86_64-alt-linux/4.4.2/crtbeginT.o:
> section [14] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcc/x86_64-alt-linux/4.4.2/crtprec32.o:
> section [15] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcc/x86_64-alt-linux/4.4.2/crtbegin.o:
> section [13] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/gcc/x86_64-alt-linux/4.4.2/crtprec80.o:
> section [15] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libpthread-2.10.1.so:
> section [33] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libcidn-2.10.1.so:
> section [28] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libanl-2.10.1.so:
> section [30] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libnss_files-2.10.1.so:
> section [28] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libdl-2.10.1.so:
> section [29] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libBrokenLocale-2.10.1.so:
> section [27] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libthread_db-1.0.so:
> section [29] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libutil-2.10.1.so:
> section [28] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libm-2.10.1.so:
> section [29] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libcrypt-2.10.1.so:
> section [29] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/librt-2.10.1.so:
> section [32] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/ld-2.10.1.so:
> section [22] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libresolv-2.10.1.so:
> section [29] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libnsl-2.10.1.so:
> section [28] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/debug/libc-2.10.1.so:
> section [69] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/libieee.a:
> section [ 4] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/klibc/lib/libc.so:
> section [ 5] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/valgrind/vgpreload_exp-ptrcheck-amd64-linux.so:
> section [22] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/valgrind/vgpreload_helgrind-amd64-linux.so:
> section [22] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/valgrind/vgpreload_drd-amd64-linux.so:
> section [22] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/valgrind/vgpreload_core-amd64-linux.so:
> section [21] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so:
> section [22] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/lib64/valgrind/vgpreload_massif-amd64-linux.so:
> section [22] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/libexec/X11/drv.d/nvidia:
> section [26] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/libexec/X11/drvpre.d/nvidia:
> section [26] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/testcall-skels.o:
> section [ 8] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/testcall-stubs.o:
> section [ 5] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/testcall-imodule.o:
> section [11] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/testcall-common.o:
> section [11] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/c-impl.o:
> section [10] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/cTestCall.so:
> section [25] '.comment' has wrong flags: expected none, is MERGE|STRINGS
> /usr/share/doc/python-module-pyorbit-2.24.0/tests/c-inproc/.libs/TestCall_module.so:
> section [24] '.comment' has wrong flags: expected none, is MERGE|STRINGS

This part of diagnostics is wrong, .comment could be MERGE|STRINGS, so
I've just submitted elfutils-0.143-alt1 with a fix.

Said that, I admit some of these files could be stripped better.
But that's another story.


-- 
ldv

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

  reply	other threads:[~2009-12-18  3:21 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 [this message]
2009-12-18 17:27             ` Alexey Tourbin
2009-12-18 17:44               ` Dmitry V. Levin
2009-12-18  2:23         ` [devel] eu-elflint Dmitry V. Levin
2009-12-18  2:49           ` 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=20091218032139.GA19657@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