From owner-freebsd-current@FreeBSD.ORG Mon Jan 28 15:55:35 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1C98F2AC for ; Mon, 28 Jan 2013 15:55:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8B83877B for ; Mon, 28 Jan 2013 15:55:34 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r0SFtOMg084703; Mon, 28 Jan 2013 17:55:24 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r0SFtOMg084703 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r0SFtOTN084702; Mon, 28 Jan 2013 17:55:24 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 28 Jan 2013 17:55:24 +0200 From: Konstantin Belousov To: Marius Strobl Subject: Re: Fast gettimeofday(2) and static linking Message-ID: <20130128155524.GS2522@kib.kiev.ua> References: <20130125123554.GQ2522@kib.kiev.ua> <20130128154516.GA59472@alchemy.franken.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C4uhv81ga6KxT6iz" Content-Disposition: inline In-Reply-To: <20130128154516.GA59472@alchemy.franken.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 15:55:35 -0000 --C4uhv81ga6KxT6iz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 28, 2013 at 04:45:17PM +0100, Marius Strobl wrote: > On Fri, Jan 25, 2013 at 02:35:54PM +0200, Konstantin Belousov wrote: > > Bruce Evans reported that statically linked binaries on HEAD an stable/9 > > use the syscall for gettimeofday(2) and clock_gettime(2). Apparently, t= his > > is due to my use of the weak reference to the __vdso* symbols in the > > libc implementations. > >=20 > > Patch below reworks the __vdso* attributes to only make the symbols > > weak, but keep the references strong. Since I have to add a stub for > > each architecture, I would like to ask non-x86 machines owners to test > > the patch. > >=20 >=20 > Hi Konstantin, >=20 > what's the appropriate way to test this? Please rebuild the world with the patch and check that gettimeofday(2) still works on your architecture, both for the static and dynamic binaries. I think that just booting multiuser is enough. --C4uhv81ga6KxT6iz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRBp9rAAoJEJDCuSvBvK1B1X8P/jPvPKfeInlIFAqtiSysjdes IVru+ZxJQPZu8nBJfg36vlCVbmj8B5d1fyEyrsd1RvgWYjpgJOaBQc3PtCvDpBgs r7ubus2aQjMkN+lxU0eHSv3KLua8e1KO2L7mJZ1eU0yzVCAuDn8FMN1/QIQBUpoo MJvgBeA2dlBHAiKr9/34vPhCtATq0dBlKY0lJK3QkSWE1MBQW9WaBsjkBf1XuHZr pk3gB/Qv4F7VYyItym96msGQi/U7nUl4l34f2pRrokPApeD6O26yp4v7ugVG6jTj ixXp8kjGD1bitHrD1aY7UVrfDvzAXSDPgwcHqsDfrHFxobypc+3Q1DgEm0PotkGX Ojuno21iCvJIxuvqjCHqbviRSLZVhRIO5mQuXIFfpZRZvFFrDZlh+rzILmVG+2NJ YvmAgVYBReIEZlxd35ptVihmk/RQwkYzjeYxGIgeYKoumdShKQAueIgRlID6V/yL GQrPwiNphyuVVNfVXhlUuUaYovoen/CeofigAbSa4n7Hwvdm/kk5q8/o5KAfsdjM 9pBbb2De0vM7ofZcXYGPjdhvNNrjGHWQ+v/Y71zAnZpz6RJZfVNA/BtlWYMN9lTA K9qIpWteXe1apqpLqk7kPNiSrVJNfwBh9KCbLs0RndEfOAkjkUKXTzcK8mJc8Fa+ 1x28vWDLHfX+McO+9508 =ffUX -----END PGP SIGNATURE----- --C4uhv81ga6KxT6iz--