From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 9 Aug 2006 02:03:42 +0400 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20060808220342.GD16715@localhost.localdomain> Mail-Followup-To: ALT Devel discussion list References: <20060808024052.GA32293@mash.office.altlinux.ru> <20060808115026.GX27285@osdn.org.ua> <20060808123044.GB21964@basalt.office.altlinux.org> <20060808183618.GC16715@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZInfyf7laFu/Kiw7" Content-Disposition: inline In-Reply-To: <20060808183618.GC16715@localhost.localdomain> Subject: [devel] rpmelfsymv X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2006 22:03:23 -0000 Archived-At: List-Archive: List-Post: --ZInfyf7laFu/Kiw7 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 08, 2006 at 10:36:18PM +0400, Alexey Tourbin wrote: > On Tue, Aug 08, 2006 at 04:30:44PM +0400, Dmitry V. Levin wrote: > > =EE=C1 =D3=D4=C1=D2=CF=CD libgcc =CE=C5 =DA=C1=D0=D5=D3=D4=C9=D4=D3=D1: > > $ rpmquery -pR FlightGear-0.9.10-alt1.i586.rpm |fgrep libgcc > > libgcc_s.so.1(GCC_3.0) =20 > > libgcc_s.so.1(GCC_4.0.0)=20 > >=20 > > =EE=C1 =CB=CF=CE=C6=D2=C5=CE=C5=C3=C9=C9 =E1=CC=C5=CB=D3=C5=C0 =D0=C5= =CE=D1=CC=C9, =DE=D4=CF =C5=C7=CF =D2=CF=C2=CF=D4 =CE=C5 =D5=DE=C9=D4=D9=D7= =C1=C5=D4 versioning. =F0=CF=CE=C9=CD=C1=C5=DB=D8 =D7 =DE=C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C1=D0=D5=D3=D4=C9=D4=D8 nm -D, =C1 =D0=CF=D4=CF=CD =C5=DD=A3 =D2= =C1=DA =DA=C1=D0=D5=D3=D4=C9=D4=D8 readelf =C9=CC=C9 =D6=C5 objdump. =F1 =CF=D3= =D4=C1=CE=CF=D7=C9=CC=D3=D1 =CE=C1 objdump (=C5=C7=CF =D5=C4=CF=C2=CE=C5=C5 =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1=D4=D8 =D3 xargs). =F7=CF=D4 =DE=D4=CF =D0= =CF=CB=C1 =D0=CF=CC=D5=DE=C1=C5=D4=D3=D1 =D0=CF=CC=D5=DE=C1=C5=D4=D3=D1: --- rpmelfsym 2006-05-27 11:15:29 +0000 +++ rpmelfsymv 2006-08-08 21:54:15 +0000 @@ -1,17 +1,22 @@ #!/bin/sh -ef export LC_ALL=3DC =20 -rpmelfsym() +rpmelfsymv() { rpmfile "$1" >files awk -F'\t' '$NF~/ELF.*(dynamic|shared)/{printf"./%s\0",$1}' files >elfs0 [ -s elfs0 ] || return 0 rpmpeek "$1" xargs -r0 nm -Do nm.out - awk '{OFS=3D"\t";sub("^./","",$1);sub(":[0-9a-fA-F]*$","",$1);print}' nm.= out + awk '{OFS=3D"\t";sub("^./","",$1);sub(":[0-9a-fA-F]*$","",$1);print}' nm.= out >elfsym + rpmpeek "$1" xargs -r0 objdump -Tw objdump.out + awk --lint '{OFS=3D"\t"} + sub(/:[[:space:]]+file format.+/,""){sub("^./","");f=3D$0;next} + sub(/.+\t/,"")&&NF>2&&$(NF-1)!=3D"Base"{print f,$NF,$(NF-1)}' objdump.ou= t >elfsymv + head elfsym elfsymv } =20 . cmdcache "" -. rpmargs -c "cmdcache rpmelfsym" "$@" +. rpmargs -c "rpmelfsymv" "$@" =20 : <<'__EOF__' =20 =E9 =D7=CF=D4 =DE=D4=CF =D7=D9=C4=C1=C5=D4: $ ./rpmelfsymv ~sisyphus/files/i586/RPMS/perl-base-5.8.8-alt1.i586.rpm =20 =3D=3D> elfsym <=3D=3D /usr/bin/perl5.8.8 U PL_do_undump /usr/bin/perl5.8.8 U PL_op_mutex /usr/bin/perl5.8.8 U PL_sigfpe_saved /usr/bin/perl5.8.8 U PL_use_safe_putenv /usr/bin/perl5.8.8 U Perl_atfork_lock /usr/bin/perl5.8.8 U Perl_atfork_unlock /usr/bin/perl5.8.8 U Perl_croak_nocontext /usr/bin/perl5.8.8 U Perl_newXS /usr/bin/perl5.8.8 R _IO_stdin_used /usr/bin/perl5.8.8 w _Jv_RegisterClasses =3D=3D> elfsymv <=3D=3D /usr/bin/perl5.8.8 signal GLIBC_2.0 /usr/bin/perl5.8.8 pthread_mutex_destroy GLIBC_2.0 /usr/bin/perl5.8.8 __register_atfork GLIBC_2.3.2 /usr/bin/perl5.8.8 boot_DynaLoader DynaLoader /usr/bin/perl5.8.8 __libc_start_main GLIBC_2.0 /usr/bin/perl5.8.8 memcpy GLIBC_2.0 /usr/bin/perl5.8.8 exit GLIBC_2.0 /usr/lib/libperl.so.5.8.8 readlink GLIBC_2.0 /usr/lib/libperl.so.5.8.8 atol GLIBC_2.0 /usr/lib/libperl.so.5.8.8 nl_langinfo GLIBC_2.0 $ =FA=CE=C1=DE=C9=D4 =C5=D3=D4=D8 =C4=D7=C5 =D4=C1=C2=CC=C9=C3=D9: =D7 =CF=C4= =CE=CF=CA =C5=D3=D4=D8 =D4=C9=D0, =CE=CF =CE=C5=D4 =D7=C5=D2=D3=C9=C9; =C1 = =D7 =C4=D2=D5=C7=CF=CA =C5=D3=D4=D8 =D7=C5=D2=D3=C9=D1, =CE=CF =CE=C5=D4 =D4=C9=D0=C1. =FC=D4=C9 = =D4=C1=C2=CC=C9=C3=D9 =CE=D5=D6=CE=CF =D3=CF=C5=C4=C9=CE=D1=D4=D8 =D0=CF = =C4=D7=D5=CD =D0=CF=CC=D1=CD: =D0=CF =C9=CD=C5=CE=C9 =C6=C1=CA=CC=C1 =C9 =C9=CD=C5=CE=C9 =D3=C9=CD=D7=CF= =CC=C1, join(1) =D4=C1=CB=CF=C5 =CE=C5 =D5=CD=C5=C5=D4. =E4=CF=D0=D5=D3=D4= =C9=CD, =C5=D3=D4=D8 =C4=D7=C1 =D3=D0=CF=D3=CF=C2=C1 =CF=C2=CF=CA=D4=C9 =DC=D4=CF =CF=C7=D2=C1= =CE=C9=DE=C5=CE=C9=C5 join, =CE=C5 =D3=D5=D4=D8 =D7=C1=D6=CE=CF. =F7=CE=C9=CD=C1=CE=C9=C5, =D7=CF=D0=D2=CF=D3: =CD=CF=C7=D5=D4 =CC=C9 =C4=D7= =C1 =CF=C4=C9=CE=C1=CB=CF=D7=D9=C8 =D3=C9=CD=D7=CF=CC=C1 =D3 =D2=C1=DA=CE= =D9=CD=C9 =D7=C5=D2=D3=C9=D1=CD=C9 =C9=CD=C5=D4=D8 =D2=C1=DA=CE=D9=C5 =D4=C9=D0=D9? =F4.=C5. symbol@LIB_1.0 -= - T (=C6=D5=CE=CB=C3=C9=D1), symbol@LIB_1.1 -- D (=D0=C5=D2=C5=CD=C5=CE=CE=C1=D1). =EB=C1=CB =D4=CF=C7=C4=C1 =D0=D2=C1=D7= =C9=CC=D8=CE=CF =D3=CF=C5=C4=C9=CE=C9=D4=D8 =D4=C9=D0 =C9 =D7=C5=D2=D3=C9= =C0? =E9 =CB=C1=CB=CF=CA =D4=C9=D0 =CE=C1 =D3=C1=CD=CF=CD =C4=C5=CC=C5 =D0=CF=CB=C1=DA=D9=D7=C1=C5=D4 nm -D? --ZInfyf7laFu/Kiw7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE2Qo+fBKgtDjnu0YRAuM2AJ9qDrSAAdSWvj3TJby2JYVIy71qzgCgojui 43lN/r9J4ee10k6tilsr3GA= =XlKw -----END PGP SIGNATURE----- --ZInfyf7laFu/Kiw7--