Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2013 17:55:24 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Marius Strobl <marius@alchemy.franken.de>
Cc:        current@freebsd.org
Subject:   Re: Fast gettimeofday(2) and static linking
Message-ID:  <20130128155524.GS2522@kib.kiev.ua>
In-Reply-To: <20130128154516.GA59472@alchemy.franken.de>
References:  <20130125123554.GQ2522@kib.kiev.ua> <20130128154516.GA59472@alchemy.franken.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130128155524.GS2522>