From: John Clemens Subject: Re: [PATCH 1/3] Add support for OpenBSD Date: Wed, 18 Oct 2006 13:08:11 -0400 Message-ID: <1161191291.8298.11.camel@jclemens> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Christoph Egger , xen-devel@lists.xensource.com, Anil Madhavapeddy List-Id: xen-devel@lists.xenproject.org On Wed, 2006-10-18 at 17:27 +0100, Keir Fraser wrote: > On 18/10/06 17:17, "Anil Madhavapeddy" wrote: > > > > It's enabled by default in OpenBSD's modified gcc-3.3.5, turn it off > > with CFLAGS+= -fno-stack-protector > > We have that already in arch/x86/Rules.mk. If that was working, I doubt > Christoph would have gone to the trouble of hacking up the SSP goop. > > -- Keir I can tell you for a fact that that check doesn't work on Ubuntu edgy. 'test-gcc-flag' greps the gcc --help output, which doesn't do the right thing, at least on Ubuntu. I believe the linux kernel equivalent tries to actually use the option and checks the gcc return code. I was in the midst of tracking this down a few weeks ago when I discovered other HVM bugs that apparently only show up with gcc v4 (bad EFER values), so I moved back to compiling with gcc-3.4 and dropped it. I'll see if I can finish it up and submit a patch unless someone beats me to it. john.c -- John Clemens Revive Systems, www.revivesystems.com