From 810ca1bd054d93d963c58e67a90d383e85211e2d Mon Sep 17 00:00:00 2001 From: David McCullough Date: Tue, 10 Feb 2004 00:22:19 +0000 Subject: [PATCH] When the linker "-v" flag is passed, turn on shell debugging to show what we are doing. --- ld-elf2flt.in | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- 2.39.5