From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 13 Aug 2006 18:55:00 +0400 From: Sergey Vlasov To: ALT Devel discussion list Message-ID: <20060813145500.GB15478@procyon.home> Mail-Followup-To: ALT Devel discussion list References: <20060811184453.GD15128@procyon.home> <20060812135000.GD15159@procyon.home> <20060812140505.GG24054@localhost.localdomain> <20060812143634.GH24054@localhost.localdomain> <20060812154901.GF15159@procyon.home> <20060813075158.GJ24054@localhost.localdomain> <20060813121309.GA15478@procyon.home> <20060813122044.GO24054@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH" Content-Disposition: inline In-Reply-To: <20060813122044.GO24054@localhost.localdomain> Subject: Re: [devel] libopenobex-1.3 symbol versioning patch 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: Sun, 13 Aug 2006 14:55:20 -0000 Archived-At: List-Archive: List-Post: --i9LlY+UWpKt15+FH Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 13, 2006 at 04:20:44PM +0400, Alexey Tourbin wrote: > =F1 =C9 =C7=CF=D7=CF=D2=C0: =C5=D3=CC=C9 =D5=C4=C1=CC=C9=D4=D8 =D3=D4=C1= =D2=D9=CA =C9=CE=D4=C5=D2=C6=C5=CA=D3 =D0=CF=CC=CE=CF=D3=D4=D8=C0, =D4=CF = =C2=D5=C4=C5=D4 =C1=CE=CD=C5=D4. =F4=CF=C7=C4=C1 =DE=C5=CD =DC=D4=CF =CC=D5=DE=DB=C5 =D3=CD=C5=CE=D9 soname? =F7=CF=CF=C2=DD=C5 =D5 =CD=C5=CE=D1 =D3=C5=CA=DE=C1=D3 =D0=CF=CC=D5=DE=C9= =CC=CF=D3=D8 =D7=CF=D4 =DE=D4=CF: #define symver_concat(pre, post) pre##post #define symver_tmp_name(name, line) symver_concat(name##_version_, line) #define symver_set_weak(real) \ __asm__ (".weak " #real); \ __asm__ (".weak ." #real) #define symver_define_alias(alias, name) \ extern __typeof__ (name) alias __attribute__((__alias__(#name))) #define symver_set_version(real, name, version) \ __asm__ (".symver " #real "," #name "@" version); \ __asm__ (".symver ." #real ",." #name "@" version) #define symver_declare_version(alias, name, version) \ symver_define_alias(alias, name); \ symver_set_version(alias, name, version) #define symbol_version(name, version) \ symver_declare_version(symver_tmp_name(name, __LINE__), \ name, #version) #define symbol_default_version(name, version) \ symver_set_weak(name); \ symver_declare_version(symver_tmp_name(name, __LINE__), \ name, "@" #version) =E9=D3=D0=CF=CC=D8=DA=D5=C5=D4=D3=D1 =CB=C1=CB-=D4=CF =D4=C1=CB: symbol_default_version(junk, JUNK_1.1); symbol_version(junk, JUNK_1.0); =F0=D2=C9 =DC=D4=CF=CD =D7 map-=C6=C1=CA=CC=C5 =D7=D3=A3 =D2=C1=D7=CE=CF = =D0=D2=C9=C8=CF=C4=C9=D4=D3=D1 =D0=C9=D3=C1=D4=D8 =D7=D3=C5 =D3=C9=CD=D7=CF= =CC=D9 =D7=CF =D7=D3=C5=C8 =D7=C5=D2=D3=C9=D1=C8: JUNK_1.0 { global: junk; local: *; }; JUNK_1.1 { global: junk; } JUNK_1.0; =E9=D3=D0=CF=CC=D8=DA=CF=D7=C1=CE=C9=C5 ".weak" =D0=CF=DA=D7=CF=CC=D1=C5=D4= =CE=C5 =CD=C5=CE=D1=D4=D8 =CF=D3=CE=CF=D7=CE=CF=CA =CB=CF=C4, =C7=C4=C5 =DC=CB=D3=D0=CF=D2=D4=C9=D2=D5=C5=CD=D9=C5 =C6=D5=CE=CB=C3=C9=C9 =D0=D2=CF= =D3=D4=CF =CF=D0=D2=C5=C4=C5=CC=D1=C0=D4=D3=D1 =CB=C1=CB =C7=CC=CF=C2=C1=CC= =D8=CE=D9=C5 (=C2=C5=DA ".weak" =D0=CF=CC=D5=DE=C1=C5=D4=D3=D1 =CB=CF=CE=C6=CC=C9=CB=D4 =C9=DA-=DA=C1 =D4= =CF=C7=CF, =DE=D4=CF =D7=C5=D2=D3=C9=D1 =D3 "@@" =C7=C5=CE=C5=D2=C9=D2=D5= =C5=D4 =C6=C1=CB=D4=C9=DE=C5=D3=CB=C9 =D0=CF=CC=CE=CF=C3=C5=CE=CE=CF=C5 =CF=D0=D2= =C5=C4=C5=CC=C5=CE=C9=C5 =D3=C9=CD=D7=CF=CC=C1). =F3=C9=CD=D7=CF=CC=D9 =D3= ".", =D0=D2=C5=C4=D0=CF=CC=CF=D6=C9=D4=C5=CC=D8=CE=CF =CE=D5=D6=CE=D9=C5 =CE=C1 = powerpc64, =D7=D2=CF=C4=C5 =C2=D9 =CE=C5 =CD=C5=DB=C1=C0=D4 =C9 =CE=C1 i586. --i9LlY+UWpKt15+FH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFE3z1EW82GfkQfsqIRAqbWAJ4spwKbkTxHIXsA53/hOcu7AzSw9QCfWXp8 /PmcQz0n+tT2QGLiip6Fzh4= =4gjZ -----END PGP SIGNATURE----- --i9LlY+UWpKt15+FH--