From: David McCullough Date: Thu, 10 Jul 2003 06:42:49 +0000 (+0000) Subject: Make sure "-relax" is only used on FINAL links, let's see if this is good X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fd884771c3807742e938a9b9e012e325c97f0817;p=elf2flt.git Make sure "-relax" is only used on FINAL links, let's see if this is good enough for the Microblaze -r/-relax incompatibility. --- diff --git a/ld-elf2flt.in b/ld-elf2flt.in index e4fd02e..17c7751 100644 --- a/ld-elf2flt.in +++ b/ld-elf2flt.in @@ -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" ]