aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-09-20 10:41:04 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-09-20 10:41:05 +0200
commite68c8d2757f05d1817d95d66cd3f2c2acc538b34 (patch)
treecb836a37f4956185b1435bdfdae93db3377e1560
parent1850ce5a2ea3b908b26165e7e951cd4334129f07 (diff)
downloadglibc-e68c8d2757f05d1817d95d66cd3f2c2acc538b34.zip
glibc-e68c8d2757f05d1817d95d66cd3f2c2acc538b34.tar.gz
glibc-e68c8d2757f05d1817d95d66cd3f2c2acc538b34.tar.bz2
sysd-rules: Cut down the number of rtld-% pattern rules
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.
-rw-r--r--ChangeLog5
-rw-r--r--scripts/sysd-rules.awk4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2758482..2214b93 100644
--- 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]
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 {