Allow powerpc64le-linux-gnu toolchain to support big endian targets as well.
authorNick Clifton <nickc@redhat.com>
Mon, 25 Apr 2016 16:25:27 +0000 (17:25 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 25 Apr 2016 16:25:27 +0000 (17:25 +0100)
PR target/19985
* configure.tgt: Include big endian PPC64 emulations with little
endian PPC64 targets.

ld/ChangeLog
ld/configure.tgt

index 4f20b5c0f434e9cec326d3631a1443d860051bea..4dd2cbc1f67c8f32f2e0c8cd6bf602822952f179 100644 (file)
@@ -1,3 +1,9 @@
+2016-04-25  Nick Clifton  <nickc@redhat.com>
+
+       PR target/19985
+       * configure.tgt: Include big endian PPC64 emulations with little
+       endian PPC64 targets.
+
 2016-04-25  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
 
        * scripttempl/avrtiny.sc (.text): Do not set LMA to zero.
index aabcfc0cd745e16197b794044437d66eda887d12..da89e2b95ecf26aaf838e983ff039886daf17917 100644 (file)
@@ -623,10 +623,13 @@ powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
                        esac
                        case "${targ}" in
                        powerpc*le-*)
-                               for z in targ_emul targ_extra_emuls targ_extra_libpath targ64_extra_emuls targ64_extra_libpath
+                               # PR 19985: Include big endian emulations.
+                               for z in targ_extra_emuls targ_extra_libpath targ64_extra_emuls targ64_extra_libpath
                                do
-                                 eval ${z}=\"`eval echo \\$${z} | sed -e 's/ppc/lppc/g'`\"
+                                 eval ${z}+=\" `eval echo \\$${z} | sed -e 's/ppc/lppc/g'`\"
                                done
+                               eval targ_extra_emuls+=\" \$targ_emul\"
+                               eval targ_emul=\"`eval echo \\$targ_emul | sed -e 's/ppc/lppc/g'`\"
                        esac ;;
 powerpc-*-nto*)         targ_emul=elf32ppcnto ;;
 powerpcle-*-nto*)       targ_emul=elf32lppcnto ;;