]> git.wh0rd.org Git - elf2flt.git/commitdiff
Make sure "-relax" is only used on FINAL links, let's see if this is good
authorDavid McCullough <davidm@snapgear.com>
Thu, 10 Jul 2003 06:42:49 +0000 (06:42 +0000)
committerDavid McCullough <davidm@snapgear.com>
Thu, 10 Jul 2003 06:42:49 +0000 (06:42 +0000)
enough for the Microblaze -r/-relax incompatibility.

ld-elf2flt.in

index e4fd02e44ae004a32421668d09906ef4feaa9c95..17c77512e706ad7fad4b8aee946c480c645e52bd 100644 (file)
@@ -29,6 +29,7 @@ then
        SDIRS=
        LDSCRIPT=
        FINAL="yes"
+       FINAL_ONLY=
        MOVDAT=
 
        while [ $# -ne 0 ]
@@ -59,6 +60,8 @@ then
 
                -EB)      ARG1="$ARG1 $1"; SDIRS="$SDIRS $1";; # arm big endian
 
+               -relax)   FINAL_ONLY="$FINAL_ONLY $1" ;;
+
                -r|-Ur)   FINAL=""                     # this is not a final link
                          ARG1="$ARG1 $1"
                                  ;;
@@ -71,6 +74,7 @@ then
 
        if [ "$FINAL" = "yes" ]
        then
+               ARG1="$ARG1 $FINAL_ONLY"
                NEWLDSCRIPT=`mktemp /tmp/flt-XXXXXX`
                SEDOP=" -e s/^R_RODAT// -e /^W_RODAT/d"
                if [ "$MOVDAT" ]