All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vincent Hanquez" <tab@snarc.org>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Adam Heath <doogie@brainfood.com>,
	Andrei Petrov <andrei.petrov@veritas.com>,
	"xen-devel@lists.sourceforge.net"
	<xen-devel@lists.sourceforge.net>
Subject: Re: [Xen-devel][PATCH] dynamic libraries
Date: Thu, 24 Feb 2005 02:40:34 +0100	[thread overview]
Message-ID: <20050224014034.GA17785@snarc.org> (raw)
In-Reply-To: <a4e93aa65fc519fbdf498c7369edbe0a@cl.cam.ac.uk>

On Wed, Feb 23, 2005 at 11:43:23PM +0000, Keir Fraser wrote:
> Okay, well I shall change to -fPIC as the default and just not build 
> static libraries. Seems pointless having both static and dynamic.

Hi Keir,

Without the following patch %ebx is spilled in fpic mode.
(%ebx hold the GOT in this mode)

--- xeno-unstable.bk/tools/libxc/xc_vmx_build.c.orig	2005-02-09 13:50:48 +0100
+++ xeno-unstable.bk/tools/libxc/xc_vmx_build.c	2005-02-09 13:51:33 +0100
@@ -426,10 +426,10 @@
 {
     int eax, ecx;
 
-    __asm__ __volatile__ ("cpuid" 
+    __asm__ __volatile__ ("pushl %%ebx; cpuid; popl %%ebx" 
 			  : "=a" (eax), "=c" (ecx) 
 			  : "0" (1) 
-			  : "bx", "dx");
+			  : "dx");
     if (!(ecx & VMX_FEATURE_FLAG)) {
         return -1;
     }


-- 
Vincent Hanquez


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

  parent reply	other threads:[~2005-02-24  1:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-23 21:28 dynamic libraries Andrei Petrov
2005-02-23 23:08 ` Keir Fraser
2005-02-23 23:14   ` Adam Heath
2005-02-23 23:19     ` Keir Fraser
2005-02-23 23:26       ` Adam Heath
2005-02-23 23:43         ` Keir Fraser
2005-02-24  0:00           ` Adam Heath
2005-02-24  0:09             ` smohekey
2005-02-24  0:12               ` Adam Heath
2005-02-24  1:40           ` Vincent Hanquez [this message]
2005-02-24  7:33             ` [Xen-devel][PATCH] " Keir Fraser
2005-02-24  0:23       ` Andrei Petrov
2005-02-24  0:46       ` Jacob Gorm Hansen
2005-02-24  0:18     ` Andrei Petrov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050224014034.GA17785@snarc.org \
    --to=tab@snarc.org \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=andrei.petrov@veritas.com \
    --cc=doogie@brainfood.com \
    --cc=xen-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.