From fd884771c3807742e938a9b9e012e325c97f0817 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 10 Jul 2003 06:42:49 +0000 Subject: [PATCH] Make sure "-relax" is only used on FINAL links, let's see if this is good enough for the Microblaze -r/-relax incompatibility. --- ld-elf2flt.in | 4 ++++ 1 file changed, 4 insertions(+) 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" ] -- 2.39.5