Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 19 Dec 2002 17:03:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 19 Dec 2002 17:03:05 -0500 Received: from bjl1.asuk.net.64.29.81.in-addr.arpa ([81.29.64.88]:27112 "EHLO bjl1.asuk.net") by vger.kernel.org with ESMTP id ; Thu, 19 Dec 2002 17:03:04 -0500 Date: Thu, 19 Dec 2002 22:10:43 +0000 From: Jamie Lokier To: Linus Torvalds Cc: bart@etpmod.phys.tue.nl, davej@codemonkey.org.uk, hpa@transmeta.com, terje.eggestad@scali.com, drepper@redhat.com, matti.aarnio@zmailer.org, hugh@veritas.com, mingo@elte.hu, linux-kernel@vger.kernel.org Subject: Re: Intel P6 vs P7 system call performance Message-ID: <20021219221043.GA18562@bjl1.asuk.net> References: <20021219135517.7E78051FB6@gum12.etpnet.phys.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1169 Lines: 27 Linus Torvalds wrote: > For _zero_ gain. The jump to the library address has to be indirect > anyway, and glibc has several places to put the information without any > mmap's or anything like that. This is not true, (but your overall point is still correct). The jump to the magic page can be direct in statically linked code, or in the executable itself. The assembler and linker have no problem with this, I have just tried it. What people (not Linus) have said about static binaries is moot, because a static binary is linked at an absolute address itself, and so can use the standard "call relative" instruction directly to the fixed magic page address. Dynamic binaries or libraries can use the indirect call or relocate the calls at load time, or if they _really_ want a magic page at a position relative to the library, they can just _copy_ the magic page from 0xfffe0000. It is not all that magic. -- Jamie - 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/