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]

Include all emulations in x86_64-*-solaris2 ld


Starting with version 4.7, GCC will gain a 64-bit-default configuration
for Solaris/x86.  I noticed a minor problem with current binutils
support for Solaris/x86: only the 32-bit linker scripts are compiled in,
so a standalone gld binary is useless in that configuration.  The
following trivial patch fixes this and has been used for gcc bootstraps
in that configuration.

It would be quite helpful if the patch could also be included in the
2.22 branch so by the time gcc 4.7 is released, a corresponding binutils
release that works seamlessly.

Thanks.

	Rainer


2011-07-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* configure.tgt (x86_64-*-solaris2*): Use $targ_extra_emuls for
	targ_extra_libpath.

diff --git a/ld/configure.tgt b/ld/configure.tgt
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -203,7 +203,7 @@ i[3-7]86-*-solaris2*)	targ_emul=elf_i386
 x86_64-*-solaris2*)
 			targ_emul=elf_x86_64_sol2
 			targ_extra_emuls="elf_x86_64 elf_i386_sol2 elf_i386_ldso elf_i386 elf_l1om elf_k1om"
-			targ_extra_libpath=elf_i386
+			targ_extra_libpath=$targ_extra_emuls
 			tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;;
 i[3-7]86-*-unixware)	targ_emul=elf_i386 ;;
 i[3-7]86-*-solaris*)	targ_emul=elf_i386_ldso

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

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