mn10300: defconfig: cleanup from old Kconfig options
[linux/fpc-iii.git] / scripts / profile2linkerlist.pl
blobf23d7be943948df09dd037b9679c9cf0de5c6873
1 #!/usr/bin/env 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/);