From patchwork Wed Sep 14 15:21:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 669940 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sZ4z15vgWz9ryr for ; Thu, 15 Sep 2016 01:22:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=DLFZSMXG; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= bQU46+iE+Pq7xampifcUY7vSDMrVU5pHBCP94qrEts2ckm/5PkI2alEIhnuZDOVo VUlrAfQwshdRA8S9tfk55GvAR5JenSqvcL2UxoBfD75gwYWX68HMAG9pmEP40QEr 1ALTP+hsFGaeybtleuAUebFLsEU+Ek+yGTC7TeD/FIE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=1ebFdo SShx+GQE2I3BZvxjREH6k=; b=DLFZSMXGP+Fgep+Rp9RAjrsqQ4SzJfC6RAxSM8 /bdUmaxz/CizwBdQ17/zLysZgMTxWzZD8dRPP2LPfFJXjR8XVdL512XkkTvSCpxo caVmsIWNe16uFcoAR0zNAo4uI2NZzYrbYA/9VDYKGrNcHdW3j6691yvm2J1Yo/sF 5ks3M= Received: (qmail 90651 invoked by alias); 14 Sep 2016 15:21:55 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 90633 invoked by uid 89); 14 Sep 2016 15:21:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=PIC X-HELO: mx1.redhat.com Date: Wed, 14 Sep 2016 17:21:51 +0200 To: libc-alpha@sourceware.org Subject: [PATCH] sysd-rules: Cut down the number of rtld-% pattern rules User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20160914152151.17744439929AA@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) rtld only needs shared objects, so the other patterns are pointless and significantly increase the work make has to perform while identifying which pattern rule to apply. 2016-09-14 Florian Weimer * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for .os objects. diff --git a/scripts/sysd-rules.awk b/scripts/sysd-rules.awk index 69af400..c82e8fd 100644 --- a/scripts/sysd-rules.awk +++ b/scripts/sysd-rules.awk @@ -50,6 +50,10 @@ BEGIN { split(pattern, td, ":"); target_pattern = td[1]; dep_pattern = td[2]; + # rtld objects are always PIC. + if (target_pattern ~ /^rtld/ && o != ".os") { + continue; + } if (target_pattern == "%") { command_suffix = ""; } else {