summaryrefslogtreecommitdiff
path: root/scripts/reference_discarded.pl
diff options
context:
space:
mode:
authorKeith Owens <kaos@ocs.com.au>2005-01-20 16:06:19 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:06:19 -0800
commite63585926bedccf96aff1ea1119d8e51d5d18dbf (patch)
tree8ef581715f2a2aaf40286335618087f5879bbcce /scripts/reference_discarded.pl
parentc2cf1ccf5414a1970aeba561ea575f502201bc82 (diff)
[PATCH] scripts/reference*.pl - treat built-in.o as conglomerate
scripts/reference*.pl - treat built-in.o as conglomerate. Ignore references from altinstructions to init text/data. Signed-off-by: Keith Owens <kaos@ocs.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts/reference_discarded.pl')
-rw-r--r--scripts/reference_discarded.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/reference_discarded.pl b/scripts/reference_discarded.pl
index 8f80364fc280..d694208ef46e 100644
--- a/scripts/reference_discarded.pl
+++ b/scripts/reference_discarded.pl
@@ -62,7 +62,7 @@ foreach $object (keys(%object)) {
$l = read(OBJECT, $comment, $size);
die "read $size bytes from $object .comment failed" if ($l != $size);
close(OBJECT);
- if ($comment =~ /GCC\:.*GCC\:/m) {
+ if ($comment =~ /GCC\:.*GCC\:/m || $object =~ /built-in\.o/) {
++$ignore;
delete($object{$object});
}