This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch, ppc, ld] Add 64 bit emulations to no-linux targets.
On Mon, Sep 10, 2012 at 11:35:41AM +0100, Iain Sandoe wrote:
> > You might like to investigate adding targ_extra_libpath too.
>
> as per the patch below?
More like this. Applied.
* configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
Correct whitespace.
(powerpcle-*-elf, et al): Likewise. Correct targ_extra_emuls.
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.267
diff -u -p -r1.267 configure.tgt
--- ld/configure.tgt 10 Sep 2012 09:59:07 -0000 1.267
+++ ld/configure.tgt 10 Sep 2012 13:59:13 -0000
@@ -520,29 +520,32 @@ powerpc*-*-linux*) case "${targ}" in
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"
+ 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="elf32ppcsim"
+ 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"
+ 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
;;
--
Alan Modra
Australia Development Lab, IBM