[PATCH] LIBPATH_SUFFIX=64 for aarch64*-linux*
Jakub Jelinek
jakub@redhat.com
Thu Mar 14 08:27:00 GMT 2013
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
More information about the Binutils
mailing list