diff options
author | Alan Modra <amodra@gmail.com> | 2013-04-25 13:22:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-04-25 13:22:52 +0000 |
commit | 49926cd0c84887c581110fb2a471b21ff19048d2 (patch) | |
tree | fb156663c8852d8df60fe238414df2f614b10aea /ld/configure.tgt | |
parent | c65e009ff7057cbf2261bb1f8d0c2e2361b9f045 (diff) | |
download | gdb-49926cd0c84887c581110fb2a471b21ff19048d2.zip gdb-49926cd0c84887c581110fb2a471b21ff19048d2.tar.gz gdb-49926cd0c84887c581110fb2a471b21ff19048d2.tar.bz2 |
bfd/
* config.bfd: Add powerpc64le-linux.
gas/
* configure.in: Allow little-endian linux.
* configure: Regenerate.
gold/
* configure.tgt: Add powerpcle and powerpc64le.
ld/
* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lppclinux.c.
(eelf32lppclinux.c): New rule.
* Makefile.in: Regenerate.
* configure.tgt: Merge powerpc-linux and other powerpc-elf targets
with corresponding little-endian targets.
* emulparams/elf32lppc.sh: Update comment.
* emulparams/elf32lppclinux.sh: New.
Diffstat (limited to 'ld/configure.tgt')
-rw-r--r-- | ld/configure.tgt | 60 |
1 files changed, 24 insertions, 36 deletions
diff --git a/ld/configure.tgt b/ld/configure.tgt index cd840e9..65884fa 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -547,56 +547,44 @@ powerpc64-*-freebsd*) tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'` tdir_elf32ppc_fbsd=$tdir_elf32ppc ;; -powerpc*-*-linux*) case "${targ}" in +powerpc-*-vxworks*) + targ_emul=elf32ppcvxworks + targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" ;; +powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \ + | powerpc*-*-linux* | powerpc*-*-netbsd* | powerpc*-*-openbsd* \ + | powerpc*-*-solaris* | powerpc*-*-kaos* | powerpc*-*-vxworks*) + case "${targ}" in *64*) targ_emul=elf64ppc - targ_extra_emuls="elf32ppclinux elf32ppc elf32ppcsim" - targ_extra_libpath="elf32ppclinux elf32ppc" - tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'` - tdir_elf32ppclinux=$tdir_elf32ppc - tdir_elf32ppcsim=$tdir_elf32ppc + targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" + targ_extra_libpath="elf32ppc elf32ppclinux" + td=tdir_elf32ppc + case "${targ}" in + powerpc*le-*) td=tdir_elf32lppc;; + esac + eval ${td}=`echo "${targ_alias}" | sed -e 's/64//'` + eval ${td}linux=\$${td} + eval ${td}sim=\$${td} ;; - *) targ_emul=elf32ppclinux + *linux*) targ_emul=elf32ppclinux targ_extra_emuls="elf32ppc elf32ppcsim" targ_extra_libpath=elf32ppc targ64_extra_emuls=elf64ppc targ64_extra_libpath=elf64ppc ;; - esac ;; -powerpc*le-*-elf* | powerpc*le-*-eabi* | powerpc*le-*-solaris* \ - | powerpc*le-*-sysv* | powerpc*le-*-vxworks*) - case "${targ}" in - *64*) targ_emul=elf64lppc - targ_extra_emuls="elf32lppc elf32lppcsim" - targ_extra_libpath=elf32lppc - tdir_elf32lppc=`echo "${targ_alias}" | sed -e 's/64//'` - tdir_elf32lppcsim=$tdir_elf32lppc - ;; - *) targ_emul=elf32lppc - targ_extra_emuls=elf32lppcsim - targ64_extra_emuls=elf64lppc - targ64_extra_libpath=elf64lppc - ;; - esac ;; -powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \ - | powerpc*-*-netbsd* | powerpc-*-openbsd* | powerpc*-*-kaos*) - case "${targ}" in - *64*) targ_emul=elf64ppc - targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" - targ_extra_libpath="elf32ppc elf32ppclinux" - tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'` - tdir_elf32ppclinux=$tdir_elf32ppc - tdir_elf32ppcsim=$tdir_elf32ppc - ;; *) targ_emul=elf32ppc targ_extra_emuls="elf32ppclinux elf32ppcsim" targ_extra_libpath=elf32ppclinux targ64_extra_emuls=elf64ppc targ64_extra_libpath=elf64ppc ;; + esac + case "${targ}" in + powerpc*le-*) + for z in targ_emul targ_extra_emuls targ_extra_libpath targ64_extra_emuls targ64_extra_libpath + do + eval ${z}=\"`eval echo \\$${z} | sed -e 's/ppc/lppc/g'`\" + done esac ;; -powerpc-*-vxworks*) - targ_emul=elf32ppcvxworks - targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" ;; powerpc-*-nto*) targ_emul=elf32ppcnto ;; powerpcle-*-nto*) targ_emul=elf32lppcnto ;; powerpc-*-rtems*) targ_emul=elf32ppc ;; |