aboutsummaryrefslogtreecommitdiff
path: root/gprof/make_solaris_order_map
blob: 616770987cba1259958e6000622411eaec71e5b2 (plain)
1
2
3
4
5
6
7
8
#!/bin/csh -f
# $1 is the file containing the function ordering
# $2 is the output file (a linker map file for the solaris native linker)

echo 'text = LOAD ?RXO;' > $2
foreach func (`cat $1`)
  echo "text: .text%$func;" >> $2
end