WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] x86-64: suppress some unneeded side effects of -

To: Jan Beulich <jbeulich@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] x86-64: suppress some unneeded side effects of -fPIC
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 13 Sep 2006 13:46:27 +0100
Delivery-date: Wed, 13 Sep 2006 05:45:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4506F1DC.76E4.0078.0@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbXMqCi301QVkMlEduJngAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH] x86-64: suppress some unneeded side effects of -fPIC
User-agent: Microsoft-Entourage/11.2.5.060620
On 12/9/06 16:43, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

> Full PIC mode isn't needed for Xen, namely is there no need to access data
> objects via the GOT or call functions through the PLT. Adding
> -fvisibility=hidden (if the compiler supports it) helps, although it doesn't
> do
> as good a job as would be desired (I'm in talks with our compiler guys to
> understand why).
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

What overheads does this remove? Does it actually shorten code sequences?

It seems that some gcc v3 compilers have -fvisibility=hidden too (e.g. My
gcc-3.4.4 does). I thus checked in a patch that checks for availability of
this feature in a 'test-gcc-flag' style of way (as defined in Config.mk),
rather than doing a gcc version test.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel