Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757909AbYAUDEO (ORCPT ); Sun, 20 Jan 2008 22:04:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757292AbYAUDDg (ORCPT ); Sun, 20 Jan 2008 22:03:36 -0500 Received: from ozlabs.org ([203.10.76.45]:37763 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756950AbYAUDDd (ORCPT ); Sun, 20 Jan 2008 22:03:33 -0500 From: Rusty Russell To: Sam Ravnborg Subject: Re: [PATCH] kbuild: introduce blacklisting in modpost Date: Mon, 21 Jan 2008 12:00:15 +1100 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-arch@vger.kernel.org, Randy Dunlap , Adrian Bunk References: <20080120200527.GA23852@uranus.ravnborg.org> <1200859743-24037-3-git-send-email-sam@ravnborg.org> <1200859743-24037-4-git-send-email-sam@ravnborg.org> In-Reply-To: <1200859743-24037-4-git-send-email-sam@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801211200.16104.rusty@rustcorp.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1039 Lines: 24 On Monday 21 January 2008 07:08:59 Sam Ravnborg wrote: > Change the logic in modpost so we identify all the > bad combinations of sections that refer to other > sections. ... > +/* The pattern is an array of simple patterns. > + * "foo" will match an exact string equal to "foo" > + * "foo*" will match a string that begins with "foo" > + * "foo$" will match a string equal to "foo" or "foo.1" > + * where the '1' can be any number including several digits. > + * The $ syntax is for sections where ld append a dot number > + * to make section name unique. Dumb question: would it be easier to canonicalize all the section names by removing trailing .[num]*, then using fnmatch() and standard wildcards? The rest of the patches look really nice: thanks for doing this cleanup! Rusty. -- 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/