From: David McCullough Date: Tue, 10 Feb 2004 00:22:19 +0000 (+0000) Subject: When the linker "-v" flag is passed, turn on shell debugging to show what X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=810ca1bd054d93d963c58e67a90d383e85211e2d;p=elf2flt.git When the linker "-v" flag is passed, turn on shell debugging to show what we are doing. --- diff --git a/ld-elf2flt.in b/ld-elf2flt.in index 325c4aa..ba93801 100644 --- a/ld-elf2flt.in +++ b/ld-elf2flt.in @@ -31,6 +31,7 @@ then FINAL="yes" FINAL_ONLY= MOVDAT= + VERBOSE= while [ $# -ne 0 ] do @@ -66,6 +67,10 @@ then ARG1="$ARG1 $1" ;; + -v) ARG1="$ARG1 $1" + VERBOSE="y" + ;; + *) ARG1="$ARG1 $1" ;; esac @@ -74,6 +79,7 @@ then if [ "$FINAL" = "yes" ] then + [ "$VERBOSE" = "y" ] && set -x ARG1="$ARG1 $FINAL_ONLY" NEWLDSCRIPT=`mktemp /tmp/flt-XXXXXX` SEDOP=" -e s/^R_RODAT// -e /^W_RODAT/d"