powerpc: Don't use kernel stack with translation off
[linux/fpc-iii.git] / scripts / profile2linkerlist.pl
blob6943fa7cc95b646d9f1a10752cf2577f4b1a2185
1 #!/usr/bin/perl
4 # Takes a (sorted) output of readprofile and turns it into a list suitable for
5 # linker scripts
7 # usage:
8 # readprofile | sort -rn | perl profile2linkerlist.pl > functionlist
10 use strict;
12 while (<>) {
13 my $line = $_;
15 $_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;
17 print "*(.text.$1)\n"
18 unless ($line =~ /unknown/) || ($line =~ /total/);