From 731bb67af7ba357164095a035749e3aaa9ac1f4f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 25 Apr 2016 17:25:27 +0100 Subject: [PATCH] Allow powerpc64le-linux-gnu toolchain to support big endian targets as well. PR target/19985 * configure.tgt: Include big endian PPC64 emulations with little endian PPC64 targets. --- ld/ChangeLog | 6 ++++++ ld/configure.tgt | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 4f20b5c0f4..4dd2cbc1f6 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2016-04-25 Nick Clifton + + PR target/19985 + * configure.tgt: Include big endian PPC64 emulations with little + endian PPC64 targets. + 2016-04-25 Senthil Kumar Selvaraj * scripttempl/avrtiny.sc (.text): Do not set LMA to zero. diff --git a/ld/configure.tgt b/ld/configure.tgt index aabcfc0cd7..da89e2b95e 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -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 ;; -- 2.34.1