From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 2 Jun 2006 15:00:32 +0400 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20060602110032.GH8164@localhost.localdomain> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqCDj3hiknadvR6t" Content-Disposition: inline In-Reply-To: <679044850606020047u69cdd37j796507a7f05d830d@mail.gmail.com> 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 11:00:32 -0000 Archived-At: List-Archive: List-Post: --AqCDj3hiknadvR6t Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 -sha= red. > > > > =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 sy= mbols > in shared libraries are still allowed. =E1=D7=D4=CF=D2 =CD=C1=CE=C1 =C9=CD=C5=CC =D7 =D7=C9=C4=D5 =C4=D2=D5=C7=CF= =C5. $ 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 --AqCDj3hiknadvR6t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEgBpPfBKgtDjnu0YRAj4lAJ9014Q+McBVTwIzlUcmGXP7JCeuNACggaYe 3F4aF0E9s/46NDiEQlXUui0= =DaK2 -----END PGP SIGNATURE----- --AqCDj3hiknadvR6t--