]> git.wh0rd.org Git - elf2flt.git/commitdiff
When the linker "-v" flag is passed, turn on shell debugging to show what
authorDavid McCullough <davidm@snapgear.com>
Tue, 10 Feb 2004 00:22:19 +0000 (00:22 +0000)
committerDavid McCullough <davidm@snapgear.com>
Tue, 10 Feb 2004 00:22:19 +0000 (00:22 +0000)
we are doing.

ld-elf2flt.in

index 325c4aa2ea9efca3a2af17b8646ace32abc4b4d4..ba9380140460a80d332e5aacb6e4546838a48ca2 100644 (file)
@@ -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"