This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] LIBPATH_SUFFIX=64 for aarch64*-linux*
- From: Jakub Jelinek <jakub at redhat dot com>
- To: binutils at sourceware dot org
- Cc: Marcus Shawcroft <marcus dot shawcroft at linaro dot org>
- Date: Thu, 14 Mar 2013 09:27:35 +0100
- Subject: [PATCH] LIBPATH_SUFFIX=64 for aarch64*-linux*
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
Related to http://gcc.gnu.org/ml/gcc-patches/2013-03/msg00288.html
and http://sourceware.org/ml/libc-ports/2013-03/msg00125.html
this patch sets LIBPATH_SUFFIX=64 for aarch64linux* emulations.
2013-03-14 Jakub Jelinek <jakub@redhat.com>
* emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
aarch64linux* emulations.
--- ld/emulparams/aarch64linux.sh.jj 2012-08-13 16:52:51.000000000 +0200
+++ ld/emulparams/aarch64linux.sh 2013-03-14 09:21:04.388172830 +0100
@@ -34,3 +34,13 @@ OTHER_SECTIONS='.note.gnu.arm.ident 0 :
ATTRS_SECTIONS='.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }'
# Ensure each PLT entry is aligned to a cache line.
PLT=".plt ${RELOCATING-0} : ALIGN(16) { *(.plt)${IREL_IN_PLT+ *(.iplt)} }"
+
+# Linux modifies the default library search path to first include
+# a 64-bit specific directory.
+case "$target" in
+ aarch64*-linux*)
+ case "$EMULATION_NAME" in
+ aarch64linux*) LIBPATH_SUFFIX=64 ;;
+ esac
+ ;;
+esac
Jakub