aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/namespace.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/namespace.pl b/scripts/namespace.pl
index 361d0f71184b..fb4e24560736 100755
--- a/scripts/namespace.pl
+++ b/scripts/namespace.pl
@@ -167,11 +167,11 @@ sub do_nm
167 printf STDERR "$fullname is not an object file\n"; 167 printf STDERR "$fullname is not an object file\n";
168 return; 168 return;
169 } 169 }
170 ($source = $fullname) =~ s/\.o$//; 170 ($source = $basename) =~ s/\.o$//;
171 if (-e "$objtree$source.c" || -e "$objtree$source.S") { 171 if (-e "$source.c" || -e "$source.S") {
172 $source = "$objtree$source"; 172 $source = "$objtree$File::Find::dir/$source";
173 } else { 173 } else {
174 $source = "$srctree$source"; 174 $source = "$srctree$File::Find::dir/$source";
175 } 175 }
176 if (! -e "$source.c" && ! -e "$source.S") { 176 if (! -e "$source.c" && ! -e "$source.S") {
177 # No obvious source, exclude the object if it is conglomerate 177 # No obvious source, exclude the object if it is conglomerate