From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759389AbYDJPBr (ORCPT ); Thu, 10 Apr 2008 11:01:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759041AbYDJPBL (ORCPT ); Thu, 10 Apr 2008 11:01:11 -0400 Received: from one.firstfloor.org ([213.235.205.2]:59975 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758668AbYDJPBK (ORCPT ); Thu, 10 Apr 2008 11:01:10 -0400 Date: Thu, 10 Apr 2008 17:05:44 +0200 From: Andi Kleen To: Linus Torvalds Cc: Andi Kleen , Steven Rostedt , Andy Whitcroft , "H. Peter Anvin" , LKML , Ingo Molnar , Peter Zijlstra , akpm@linux-foundation.org, Rusty Russell , Glauber de Oliveira Costa , Jan Beulich , Thomas Gleixner , pinskia@gcc.gnu.org Subject: Re: [PATCH] pop previous section in alternative.c Message-ID: <20080410150544.GI10019@one.firstfloor.org> References: <47FD5D42.5000603@zytor.com> <87wsn6m6zt.fsf@basil.nowhere.org> <20080410094637.GW17915@shadowen.org> <20080410144114.GH10019@one.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 10, 2008 at 07:46:25AM -0700, Linus Torvalds wrote: > > > On Thu, 10 Apr 2008, Andi Kleen wrote: > > > > So in summary valid section patterns are either > > .section / .previous or .pushsection .section .popsection > > The thing is, we'd be much better off with some sanity checking in the > assembler. > > Which is likely not going to happen - oh well. A simple way to detect it on the assembler level would be checking that the section is the same after #NO_APP as before #APP -Andi