From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 2 Jun 2006 18:01:48 +0400 From: Sergey Vlasov To: ALT Devel discussion list Message-ID: <20060602140148.GB7502@master.mivlgu.local> References: <200606011936.25797.shrek@freesource.info> <20060601154353.GA7976@basalt.office.altlinux.org> <20060601164134.GD8164@localhost.localdomain> <679044850606020047u69cdd37j796507a7f05d830d@mail.gmail.com> <20060602110032.GH8164@localhost.localdomain> <20060602131757.GB4604@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LyciRD1jyfeSSjG0" Content-Disposition: inline In-Reply-To: <20060602131757.GB4604@basalt.office.altlinux.org> Subject: Re: [devel] =?koi8-r?b?bGlic3RkYysrNC4xLWRldmVsINPMz83Bzj8=?= 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: Fri, 02 Jun 2006 14:02:14 -0000 Archived-At: List-Archive: List-Post: --LyciRD1jyfeSSjG0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 02, 2006 at 05:17:57PM +0400, Dmitry V. Levin wrote: > > $ cat test.c > > test() > > { > > no_such_function(); > > } > > $ gcc -shared -fPIC -o libtest.so test.c > > $ ls -l libtest.so > > -rwxr-xr-x 1 at at 5591 Jun 2 14:54 libtest.so > > $ gcc -shared -fPIC -o libtest.so test.c -Wl,-z,defs > > /tmp/.private/at/ccCRSta9.o: In function `test': > > test.c:(.text+0x14): undefined reference to `no_such_function' > > collect2: ld returned 1 exit status > > $=20 >=20 > =EE=D5 =C9 =DE=D4=CF? =FE=C1=D3=D4=D8 =D3=C9=CD=D7=CF=CC=CF=D7 =D6=C9=D7= =A3=D4 =D7 ld.so =C9 =D4=C5=CD =D3=C1=CD=D9=CD =C4=C5=CC=C1=C5=D4 -Wl,-z,de= fs > =CD=C1=CC=CF=D0=D2=C9=C7=CF=C4=CE=D9=CD =CE=C1 =D0=D2=C1=CB=D4=C9=CB=C5. $ cat test_exceptions.cpp=20 int main(int argc, char **argv) { throw 0; } =F7=CF=D4 =DC=D4=CF =D2=C1=C2=CF=D4=C1=C5=D4: $ gcc -Wl,-z,defs -o test_exceptions test_exceptions.cpp -lsupc++ =F0=D2=C9 =DC=D4=CF=CD =D0=CF=CC=D5=DE=C1=C5=CD=D9=CA =C9=D3=D0=CF=CC=CE=D1= =C5=CD=D9=CA =C6=C1=CA=CC =D3=CF=C4=C5=D2=D6=C9=D4 ld-linux.so.2 =D7 DT_NEE= DED (=DE=C5=C7=CF =CF=C2=D9=DE=CE=CF =CE=C5 =D0=D2=CF=C9=D3=C8=CF=C4=C9=D4). =E1 =D7=CF=D4 =DC=D4=CF =D5=D6=C5 =CE=C5 =D2=C1=C2=CF=D4=C1=C5=D4: $ gcc -Wl,-z,defs -shared -fPIC -o test_exceptions.so test_exceptions.cpp -= lsupc++ /usr/lib/gcc/i586-alt-linux/4.1.0/libsupc++.a(eh_globals.o): In function `_= _gnu_internal::get_global()': eh_globals.cc:(.text._ZN14__gnu_internal10get_globalEv+0x17): undefined ref= erence to `___tls_get_addr' collect2: ld returned 1 exit status =E4=D2=D5=C7=CF=CA =D7=CF=D0=D2=CF=D3 - =DA=C1=DE=C5=CD =CD=CF=D6=C5=D4 =C2= =D9=D4=D8 =CE=D5=D6=CE=CF =CC=C9=CE=CB=CF=D7=C1=D4=D8 =D2=C1=DA=C4=C5=CC=D1= =C5=CD=D5=C0 =C2=C9=C2=CC=C9=CF=D4=C5=CB=D5 =D3 libsupc++.a, =D3=CF=DA=C4=C1=D7=C1=D1 =D4=C5=CD =D3=C1=CD=D9=CD =CB=C1=CB = =CD=C9=CE=C9=CD=D5=CD =C4=D5=C2=CC=C9=D2=CF=D7=C1=CE=C9=C5 =CB=CF=C4=C1. = =E5=D3=CC=C9 =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1=D4=D8 =CE=CF=D2=CD=C1=CC=D8=CE=D5=C0 =D2=C1= =DA=C4=C5=CC=D1=C5=CD=D5=C0 libstdc++, =CE=C9=CB=C1=CB=C9=C8 =D0=D2=CF=C2= =CC=C5=CD =D3 -Wl,-z,defs =CE=C5 =D7=CF=DA=CE=C9=CB=C1=C5=D4. --LyciRD1jyfeSSjG0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFEgETMW82GfkQfsqIRAtmHAJ9mC0c6f6p6lgWWbMe2zHf4y862lACeNFzW 2yRvk7KEJuP/+8tn12zGMv0= =Kgzk -----END PGP SIGNATURE----- --LyciRD1jyfeSSjG0--