]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sysd-rules: Cut down the number of rtld-% pattern rules
authorFlorian Weimer <fweimer@redhat.com>
Tue, 20 Sep 2016 08:41:04 +0000 (10:41 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 20 Sep 2016 08:41:05 +0000 (10:41 +0200)
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.

ChangeLog
scripts/sysd-rules.awk

index 27584824d8639383ad94e5ba242b3aaf46644ab7..2214b93815ad891b9e5180ebbb012442b9d395ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-20  Florian Weimer  <fweimer@redhat.com>
+
+       * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
+       .os objects.
+
 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
 
        [BZ #20615]
index 69af400e58ce66c3c48ea65a3130b9f465438333..c82e8fd607b4426cb1521babdc96524c1ec900bd 100644 (file)
@@ -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 {