This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, ppc, ld] Add 64 bit emulations to no-linux targets.


Hi,

We have a patch in our local tree noting that 64 bit emulations are missing from powerpc targets other than linux.  Looking at ld/configure.tgt, this is also the case for powerpcle.

The patch below adds these.

Tested for powerpc{,le}-elf with --enable-64-bit-bfd that ld --verbose lists the emulations.

OK for trunk?
thanks,
Iain


ld/

	* configure.tgt (powerpc-*-elf, et. al): Define targ64_extra_emuls
	and targ64_extra_libpath.
	powerpcle-*-elf, et. al): Likewise.

Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.266
diff -u -p -r1.266 configure.tgt
--- ld/configure.tgt	13 Aug 2012 14:52:51 -0000	1.266
+++ ld/configure.tgt	7 Sep 2012 06:36:43 -0000
@@ -527,7 +527,10 @@ powerpc*le-*-elf* | powerpc*le-*-eabi* |
 				tdir_elf32lppcsim=$tdir_elf32lppc
 				;;
 			*)	targ_emul=elf32lppc
-				targ_extra_emuls="elf32ppcsim" ;;
+				targ_extra_emuls="elf32ppcsim"
+				targ64_extra_emuls=elf64lppc
+				targ64_extra_libpath=elf64lppc
+				;;
 			esac ;;
 powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
   | powerpc*-*-netbsd* | powerpc-*-openbsd* | powerpc*-*-kaos*)
@@ -539,7 +542,10 @@ powerpc*-*-elf* | powerpc*-*-eabi* | pow
 				tdir_elf32ppcsim=$tdir_elf32ppc
 				;;
 			*)	targ_emul=elf32ppc
-				targ_extra_emuls="elf32ppclinux elf32ppcsim" ;;
+				targ_extra_emuls="elf32ppclinux elf32ppcsim"
+				targ64_extra_emuls=elf64ppc
+				targ64_extra_libpath=elf64ppc
+				;;
 			esac ;;
 powerpc-*-vxworks*)
 			targ_emul=elf32ppcvxworks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]