From 71128bd7a98889baab8044ccc1138a62371dda4c Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 31 Dec 1995 06:28:22 +0000 Subject: [PATCH] Just so we have them checked in somewhere; they're sanitized away as we really don't want to distribute them as part of gprof (not without major work). --- gprof/.Sanitize | 2 ++ gprof/make_hp_order_obj | 10 ++++++++++ gprof/make_solaris_order_map | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100755 gprof/make_hp_order_obj create mode 100755 gprof/make_solaris_order_map diff --git a/gprof/.Sanitize b/gprof/.Sanitize index 88acd58fc1..f4a9fa9006 100644 --- a/gprof/.Sanitize +++ b/gprof/.Sanitize @@ -90,6 +90,8 @@ vax.h Things-to-lose: .cvsignore +make_hp_order_obj +make_solaris_order_map Do-last: diff --git a/gprof/make_hp_order_obj b/gprof/make_hp_order_obj new file mode 100755 index 0000000000..5d8027eabe --- /dev/null +++ b/gprof/make_hp_order_obj @@ -0,0 +1,10 @@ +#!/bin/csh -f +# $1 is the file containing the function ordering +# $2 is the output file + +echo ' .SPACE $TEXT$' > /tmp/$$.s +foreach func (`cat $1`) + echo " .NSUBSPA $func,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY" >> /tmp/$$.s +end + +gcc -c /tmp/$$.s -o $2 diff --git a/gprof/make_solaris_order_map b/gprof/make_solaris_order_map new file mode 100755 index 0000000000..616770987c --- /dev/null +++ b/gprof/make_solaris_order_map @@ -0,0 +1,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