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.
Hello Alan,
On 9 Sep 2012, at 16:18, Alan Modra wrote:
> On Fri, Sep 07, 2012 at 07:46:44AM +0100, Iain Sandoe wrote:
>> * configure.tgt (powerpc-*-elf, et. al): Define targ64_extra_emuls
>> and targ64_extra_libpath.
>> powerpcle-*-elf, et. al): Likewise.
>
> OK.
Thanks, applied.
> You might like to investigate adding targ_extra_libpath too.
as per the patch below?
I have checked that there are no regressions for powerpc{,le}-elf.
However, there are no progressions either - implying that this is not tested in any way.
OK to apply?
Iain
ld/
* configure.tgt (powerpc-*-elf, et al): Define targ_extra_libpath.
Correct whitespace.
(powerpcle-*-elf, et al): Likewise.
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.267
diff -u -r1.267 configure.tgt
--- ld/configure.tgt 10 Sep 2012 09:59:07 -0000 1.267
+++ ld/configure.tgt 10 Sep 2012 10:30:15 -0000
@@ -520,8 +520,9 @@
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_libpath=elf32lppc
+ case "${targ}" in
+ *64*) targ_emul=elf64lppc
targ_extra_emuls="elf32lppc elf32lppcsim"
tdir_elf32lppc=`echo "${targ_alias}" | sed -e 's/64//'`
tdir_elf32lppcsim=$tdir_elf32lppc
@@ -534,8 +535,9 @@
esac ;;
powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
| powerpc*-*-netbsd* | powerpc-*-openbsd* | powerpc*-*-kaos*)
- case "${targ}" in
- *64*) targ_emul=elf64ppc
+ targ_extra_libpath=elf32ppc
+ case "${targ}" in
+ *64*) targ_emul=elf64ppc
targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim"
tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'`
tdir_elf32ppclinux=$tdir_elf32ppc