Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756544AbXJXQUM (ORCPT ); Wed, 24 Oct 2007 12:20:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754229AbXJXQT5 (ORCPT ); Wed, 24 Oct 2007 12:19:57 -0400 Received: from rv-out-0910.google.com ([209.85.198.186]:41832 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754084AbXJXQT4 (ORCPT ); Wed, 24 Oct 2007 12:19:56 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZJAzJsALPiLoco/HCG2ZtPV3kLnO5zL620i7YhF26LCl36/FQokr9m6NSncXTmtAVymRIhOOhVHynI1mlBwfT2M4bAGXSvVQGWco3ApO4UkAg1W2SbvGPCWGGbnYPl6pNQv36XXhojrPYygxXcA12ExffTCZjUn0mOnpqbFbRBQ= Message-ID: <8bd0f97a0710240919l36547278w9fdb36fd2a6fe34a@mail.gmail.com> Date: Wed, 24 Oct 2007 12:19:52 -0400 From: "Mike Frysinger" To: "Robin Getz" Subject: Re: history of extratext sections? Cc: paulus@samba.org, linux-kernel@vger.kernel.org, "Andrew Morton" In-Reply-To: <200710240836.13412.rgetz@blackfin.uclinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710240836.13412.rgetz@blackfin.uclinux.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 25 On 10/24/07, Robin Getz wrote: > - make the check dependant on extratext being populated > =================================================================== > --- linux-2.6.x/kernel/kallsyms.c (revision 3760) > +++ linux-2.6.x/kernel/kallsyms.c (working copy) > @@ -51,7 +51,8 @@ > static inline int is_kernel_extratext(unsigned long addr) > { > if (addr >= (unsigned long)_sextratext > - && addr <= (unsigned long)_eextratext) > + && addr <= (unsigned long)_eextratext > + && _sextratext && _eextratext) > return 1; > return 0; > } i think you'd want: if (_sextratext && _eextratext && ... everything else ... -mike - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/