This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] sysd-rules: Cut down the number of rtld-% pattern rules
- From: fweimer at redhat dot com (Florian Weimer)
- To: libc-alpha at sourceware dot org
- Date: Wed, 14 Sep 2016 17:21:51 +0200
- Subject: [PATCH] sysd-rules: Cut down the number of rtld-% pattern rules
- Authentication-results: sourceware.org; auth=none
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 <fweimer@redhat.com>
* 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 {