This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] LIBPATH_SUFFIX=64 for aarch64*-linux*
- From: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sourceware dot org, Marcus Shawcroft <marcus dot shawcroft at linaro dot org>
- Date: Thu, 14 Mar 2013 08:53:36 +0000
- Subject: Re: [PATCH] LIBPATH_SUFFIX=64 for aarch64*-linux*
- References: <20130314082735.GZ12913@tucnak.redhat.com>
Looks OK to me.
/Marcus
On 14 March 2013 08:27, Jakub Jelinek <jakub@redhat.com> wrote:
> 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