* Improve biarch x86-linux support
@ 2006-10-19 2:13 Joseph S. Myers
2006-10-19 2:26 ` H. J. Lu
2006-10-19 15:53 ` Nick Clifton
0 siblings, 2 replies; 3+ messages in thread
From: Joseph S. Myers @ 2006-10-19 2:13 UTC (permalink / raw)
To: binutils
If binutils is configured for i686-pc-linux-gnu with --enable-64-bit-bfd,
then it also supports x86_64 - but doesn't know to search lib64
directories. This patch fixes it so that it will search the proper
directories, the same as an x86_64 binutils would search. OK to commit?
(This is of use in conjunction with a GCC patch I'll submit for GCC 4.3 to
allow a 64-bit multilib to be enabled for i686-pc-linux-gnu, so that you
can have a 32/64-bit biarch configuration defaulting to 32-bit, not just
one defaulting to 64-bit.)
2006-10-18 Joseph Myers <joseph@codesourcery.com>
* configure.tgt (i[3-7]86-*-linux-*): Also define
targ_extra_libpath in want64 case.
* emulparams/elf_x86_64.sh: Handle i[3-7]86-*-linux-* the same as
x86_64*-linux*.
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.195
diff -u -r1.195 configure.tgt
--- ld/configure.tgt 20 Sep 2006 11:35:09 -0000 1.195
+++ ld/configure.tgt 18 Oct 2006 15:45:29 -0000
@@ -153,6 +153,7 @@
targ_extra_emuls=i386linux
if test x${want64} = xtrue; then
targ_extra_emuls="$targ_extra_emuls elf_x86_64"
+ targ_extra_libpath=elf_x86_64
fi
tdir_i386linux=${targ_alias}aout ;;
x86_64-*-linux-*) targ_emul=elf_x86_64
Index: ld/emulparams/elf_x86_64.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/elf_x86_64.sh,v
retrieving revision 1.18
diff -u -r1.18 elf_x86_64.sh
--- ld/emulparams/elf_x86_64.sh 24 Jul 2006 18:18:19 -0000 1.18
+++ ld/emulparams/elf_x86_64.sh 18 Oct 2006 15:45:29 -0000
@@ -25,7 +25,7 @@
# Linux/Solaris modify the default library search path to first include
# a 64-bit specific directory.
case "$target" in
- x86_64*-linux*)
+ x86_64*-linux*|i[3-7]86-*-linux-*)
case "$EMULATION_NAME" in
*64*) LIBPATH_SUFFIX=64 ;;
esac
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Improve biarch x86-linux support
2006-10-19 2:13 Improve biarch x86-linux support Joseph S. Myers
@ 2006-10-19 2:26 ` H. J. Lu
2006-10-19 15:53 ` Nick Clifton
1 sibling, 0 replies; 3+ messages in thread
From: H. J. Lu @ 2006-10-19 2:26 UTC (permalink / raw)
To: Joseph S. Myers; +Cc: binutils
On Wed, Oct 18, 2006 at 03:57:01PM +0000, Joseph S. Myers wrote:
> If binutils is configured for i686-pc-linux-gnu with --enable-64-bit-bfd,
> then it also supports x86_64 - but doesn't know to search lib64
> directories. This patch fixes it so that it will search the proper
> directories, the same as an x86_64 binutils would search. OK to commit?
>
> (This is of use in conjunction with a GCC patch I'll submit for GCC 4.3 to
> allow a 64-bit multilib to be enabled for i686-pc-linux-gnu, so that you
> can have a 32/64-bit biarch configuration defaulting to 32-bit, not just
> one defaulting to 64-bit.)
>
> 2006-10-18 Joseph Myers <joseph@codesourcery.com>
>
> * configure.tgt (i[3-7]86-*-linux-*): Also define
> targ_extra_libpath in want64 case.
> * emulparams/elf_x86_64.sh: Handle i[3-7]86-*-linux-* the same as
> x86_64*-linux*.
>
OK. Thanks.
H.J.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Improve biarch x86-linux support
2006-10-19 2:13 Improve biarch x86-linux support Joseph S. Myers
2006-10-19 2:26 ` H. J. Lu
@ 2006-10-19 15:53 ` Nick Clifton
1 sibling, 0 replies; 3+ messages in thread
From: Nick Clifton @ 2006-10-19 15:53 UTC (permalink / raw)
To: Joseph S. Myers; +Cc: binutils
Hi Joseph,
> 2006-10-18 Joseph Myers <joseph@codesourcery.com>
>
> * configure.tgt (i[3-7]86-*-linux-*): Also define
> targ_extra_libpath in want64 case.
> * emulparams/elf_x86_64.sh: Handle i[3-7]86-*-linux-* the same as
> x86_64*-linux*.
Approved - please apply.
Cheers
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-19 14:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-19 2:13 Improve biarch x86-linux support Joseph S. Myers
2006-10-19 2:26 ` H. J. Lu
2006-10-19 15:53 ` Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).