This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix x86 non-ELF build breakage
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Wed, 12 Nov 2014 05:08:49 -0800
- Subject: Re: Fix x86 non-ELF build breakage
- Authentication-results: sourceware.org; auth=none
- References: <20141112044003 dot GB18773 at bubble dot grove dot modra dot org>
On Tue, Nov 11, 2014 at 8:40 PM, Alan Modra <amodra@gmail.com> wrote:
> Applying mainline and branch
>
> PR ld/17482
> * config/tc-i386.c (output_insn): Don't test x86_elf_abi when
> not ELF.
>
> diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
> index cdd4ed4..51d58c1 100644
> --- a/gas/config/tc-i386.c
> +++ b/gas/config/tc-i386.c
> @@ -6997,6 +6997,7 @@ check_prefix:
> abort ();
> }
>
> +#if defined (OBJ_MAYBE_ELF) || defined (OBJ_ELF)
> /* For x32, add a dummy REX_OPCODE prefix for mov/add with
> R_X86_64_GOTTPOFF relocation so that linker can safely
> perform IE->LE optimization. */
> @@ -7005,6 +7006,7 @@ check_prefix:
> && i.reloc[0] == BFD_RELOC_X86_64_GOTTPOFF
> && i.prefix[REX_PREFIX] == 0)
> add_prefix (REX_OPCODE);
> +#endif
>
> /* The prefix bytes. */
> for (j = ARRAY_SIZE (i.prefix), q = i.prefix; j > 0; j--, q++)
>
Thanks.
--
H.J.