home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Welt 2006 November (DVD)
/
PCWELT_11_2006.ISO
/
casper
/
filesystem.squashfs
/
usr
/
src
/
linux-headers-2.6.17-6-686
/
scripts
/
profile2linkerlist.pl
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Perl Script
|
2006-08-11
|
378 b
|
22 lines
#!/usr/bin/perl
#
# Takes a (sorted) output of readprofile and turns it into a list suitable for
# linker scripts
#
# usage:
# readprofile | sort -rn | perl profile2linkerlist.pl > functionlist
#
while (<>) {
my $line = $_;
$_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;
if ( ($line =~ /unknown/) || ($line =~ /total/)) {
} else {
print "*(.text.$1)\n";
}
}