From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758776AbYDJOzx (ORCPT ); Thu, 10 Apr 2008 10:55:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756219AbYDJOzq (ORCPT ); Thu, 10 Apr 2008 10:55:46 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:42990 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755971AbYDJOzp (ORCPT ); Thu, 10 Apr 2008 10:55:45 -0400 Date: Thu, 10 Apr 2008 10:55:44 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Linus Torvalds cc: Andi Kleen , 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 In-Reply-To: Message-ID: 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Apr 2008, Linus Torvalds wrote: > > But maybe we can see it in the resulting object file somehow, and do the > check there (the same way we do the init-section analysis). I assume the > ..size directive writes some debug info or similar, and we can create a big > warning when a size is unexpectedly huge and crosses section size > boundaries? I'm not sure how much this would help, but where I saw my red flag was examining the objdump and seeing this: 89: bf 69 00 00 00 mov $0x69,%edi 8e: e8 00 00 00 00 callq 93 8f: R_X86_64_PC32 .rodata+0x8c A call to .rodata?? -- Steve