OSDN Git Service

Make sure "-relax" is only used on FINAL links, let's see if this is good
authordavidm <davidm>
Thu, 10 Jul 2003 06:42:49 +0000 (06:42 +0000)
committerdavidm <davidm>
Thu, 10 Jul 2003 06:42:49 +0000 (06:42 +0000)
enough for the Microblaze -r/-relax incompatibility.

ld-elf2flt.in

index e4fd02e..17c7751 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" ]