From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 2 Jun 2006 17:17:57 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20060602131757.GB4604@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <200606011936.25797.shrek@freesource.info> <20060601154353.GA7976@basalt.office.altlinux.org> <20060601164134.GD8164@localhost.localdomain> <679044850606020047u69cdd37j796507a7f05d830d@mail.gmail.com> <20060602110032.GH8164@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QTprm0S8XgL7H0Dt" Content-Disposition: inline In-Reply-To: <20060602110032.GH8164@localhost.localdomain> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E 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 13:17:57 -0000 Archived-At: List-Archive: List-Post: --QTprm0S8XgL7H0Dt Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 02, 2006 at 03:00:32PM +0400, Alexey Tourbin wrote: > On Fri, Jun 02, 2006 at 11:47:11AM +0400, Damir Shayhutdinov wrote: > > 01.06.06, Alexey Tourbin =CE=C1=D0=C9=D3=C1=CC(=C1): > > > > =F5=C2=D2=C1=D4=D8 -Wl,-z,defs - =D7 =DC=D4=CF=CD =D7=D3=A3 =D2=C1= =D7=CE=CF =CE=C5=D4 =D3=CD=D9=D3=CC=C1 =D0=D2=C9 =CC=C9=CE=CB=CF=D7=CB=C5 -= shared. > > > > > > =F0=CF=DE=C5=CD=D5 =CE=C5 =C9=CD=C5=C5=D4 =D3=CD=D9=D3=CC=C1?> > > ld(1) > > ---- > > -z > > defs > > Disallows undefined symbols in object files. Undefined = symbols > > in shared libraries are still allowed. >=20 > =E1=D7=D4=CF=D2 =CD=C1=CE=C1 =C9=CD=C5=CC =D7 =D7=C9=C4=D5 =C4=D2=D5=C7= =CF=C5. =FE=D4=CF =C9=CD=C5=CE=CE=CF? > $ 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 =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. --=20 ldv --QTprm0S8XgL7H0Dt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEgDqEfKvmrJ41Nh4RAq+GAKC6zI98SpSWq31fv6nm3lcrFAlWDwCgoUbT 60MLnlb3txMCgakufD47giA= =HNMb -----END PGP SIGNATURE----- --QTprm0S8XgL7H0Dt--