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/AARCH64 1/2] Fix AARCH64 linux target support for LIBPATH's


While working on ILP32 Linux ld support, I noticed that the LIBPATH was not
set correctly.  This patch fixes that by splitting out the linux targets
from targ_extra_emuls into targ_extra_libpath.

OK?  Build and tested on aarch64-linux-gnu and aarch64_be-linux-gnu with no regressions.

Thanks,
Andrew Pinski

	* configure.tgt (aarch64_be-*-linux*): Split out the linux targets
	into targ_extra_libpath.
	(aarch64-*-linux*): Likewise.
---
 ld/configure.tgt |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ld/configure.tgt b/ld/configure.tgt
index eefb772..5d23732 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -50,9 +50,11 @@ aarch64_be-*-elf)	targ_emul=aarch64elfb
 aarch64-*-elf)		targ_emul=aarch64elf
 			targ_extra_emuls="aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb" ;;
 aarch64_be-*-linux*)	targ_emul=aarch64linuxb
-			targ_extra_emuls="aarch64linux aarch64elfb aarch64elf aarch64elf32 aarch64elf32b armelfb_linux_eabi armelf_linux_eabi armelfb armelf" ;;
+			targ_extra_libpath="aarch64linux armelfb_linux_eabi armelf_linux_eabi"
+			targ_extra_emuls="aarch64elfb aarch64elf aarch64elf32 aarch64elf32b armelfb armelf $targ_extra_libpath" ;;
 aarch64-*-linux*)	targ_emul=aarch64linux
-			targ_extra_emuls="aarch64linuxb aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf_linux_eabi armelfb_linux_eabi armelf armelfb" ;;
+			targ_extra_libpath="aarch64linuxb armelfb_linux_eabi armelf_linux_eabi"
+			targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb $targ_extra_libpath" ;;
 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
 		        targ_emul=elf64alpha_fbsd
 			targ_extra_emuls="elf64alpha alpha"
-- 
1.7.2.5


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