ACPI: thinkpad-acpi: add bluetooth and WWAN rfkill support
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / scripts / profile2linkerlist.pl
blobcb4260ebdb9192a91a93e2244ca45adc86efcc9b
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
11 while (<>) {
12 my $line = $_;
14 $_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;
16 if ( ($line =~ /unknown/) || ($line =~ /total/)) {
18 } else {
19 print "*(.text.$1)\n";