Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752531AbaFPA4h (ORCPT ); Sun, 15 Jun 2014 20:56:37 -0400 Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:57761 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751554AbaFPA4g (ORCPT ); Sun, 15 Jun 2014 20:56:36 -0400 Date: Sun, 15 Jun 2014 20:55:12 -0400 From: Rich Felker To: "H. Peter Anvin" Cc: Andy Lutomirski , Andi Kleen , Mikael Pettersson , Russ Cox , Linux API , Ian Taylor , "linux-kernel@vger.kernel.org" , X86 ML Subject: Re: [RFC 0/2] __vdso_findsym Message-ID: <20140616005512.GR179@brightrain.aerifal.cx> References: <21405.44257.742122.786960@gargle.gargle.HOWL> <20140615143500.GP179@brightrain.aerifal.cx> <539DD26B.3060709@zytor.com> <539DDE9C.3010903@zytor.com> <4ab91a07-c46c-485b-895d-b074d36624d6@email.android.com> <90c597c5-f77d-491e-b0b8-dde2027155b5@email.android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <90c597c5-f77d-491e-b0b8-dde2027155b5@email.android.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 15, 2014 at 12:14:04PM -0700, H. Peter Anvin wrote: > If it doesn't, then you incur an additional indirection penalty. The > strong __vdso symbol allows the libc wrapper to fall back to the > vdso implementation, the weak symbol allows three to be no wrapper > at all. This is good. No it doesn't. The weak symbol does not implement the interface contract of the libc function; on error it's required to set errno, and of course the kernel/vdso cannot do this. Also, there's no way the symbol versions the kernel provides can match up with userspace symbol versions that consumers of the function would need. So these features are just useless. Rich -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/