From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 9 Aug 2006 03:16:59 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20060808231659.GA11505@basalt.office.altlinux.org> 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> <20060808220342.GD16715@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <20060808220342.GD16715@localhost.localdomain> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [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 23:16:59 -0000 Archived-At: List-Archive: List-Post: --AhhlLboLdkugWU4S Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 09, 2006 at 02:03:42AM +0400, Alexey Tourbin wrote: > 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=C5=D2=C5=CE=C3=C9=C9 =E1=CC=C5=CB=D3=C5=C0 =D0=C5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=D2=CF=DE=C5=D2=CB, =C5=D3=CC=C9 =D7=C5=D2=D3=C9=C9 = =CE=C5=D4). =F7 =CF=C2=DD=C5=CD =D3=CC=D5=DE=C1=C5 =DC=D4=CF=C7=CF =D3=C4=C5=CC=C1=D4= =D8 =CE=C5=CC=D8=DA=D1. [...] > =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). =EE=C9=DE=D4=CF, =CB=D2=CF=CD=C5 =DA=C4=D2=C1=D7=CF=C7=CF =D3=CD=D9=D3=CC= =C1, =CE=C5 =CD=C5=DB=C1=C5=D4 =D4=C1=CB =D3=C4=C5=CC=C1=D4=D8: $ cat v.c int old_foo; void new_foo(void) {} __asm__(".symver old_foo,foo@V1"); __asm__(".symver new_foo,foo@@V2"); $ cat v.map V1 { global: foo; local: old_foo; }; V2 { global: foo; local: new_foo; }; $ gcc -fpic -shared -nostartfiles -nostdlib -Wl,--version-script,v.map -s -= o v.so v.c $ objdump -wT v.so |fgrep foo 000012cc g DO .bss 00000004 (V1) foo 00000248 g DF .text 00000005 V2 foo > =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? =F4=C9=D0 =DC=CB=D3=D0=CF=D2=D4=C9=D2=D5=C5=CD=CF=C7=CF =D3=C9=CD=D7=CF=CC= =C1 - =DC=D4=CF =C5=C7=CF =CE=C5=CF=D4=DF=C5=CD=CC=C5=CD=C1=D1 =DE=C1=D3=D4= =D8, =D4=C1=CB =D6=C5 =CB=C1=CB =C9=CD=D1 =C9 =D7=C5=D2=D3=C9=D1. > =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? $ nm -D v.so |fgrep foo 000012cc B foo 00000248 T foo =F4=C1=CB=C9=CD =CF=C2=D2=C1=DA=CF=CD, =CE=D5=D6=CE=CF =C9=D3=D0=CF=CC=D8= =DA=CF=D7=C1=D4=D8 objdump -wT =D7=CD=C5=D3=D4=CF nm -D. --=20 ldv --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE2RtrfKvmrJ41Nh4RApzlAKC6IRt/OSFYhU2XoOMcJLQbxYoL2gCgvkB3 QPd1eX9lPKYRg2ebkxeKlwI= =GM9K -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--