This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix gold build for aarch64
- From: Cary Coutant <ccoutant at google dot com>
- To: Slava Barinov <v dot barinov at samsung dot com>
- Cc: Binutils <binutils at sourceware dot org>, Andreas Schwab <schwab at redhat dot com>
- Date: Fri, 17 Oct 2014 16:43:24 -0700
- Subject: Re: [PATCH] Fix gold build for aarch64
- Authentication-results: sourceware.org; auth=none
- References: <0NCC007XDDPY2170 at eusync4 dot samsung dot com>
Sorry, I forwarded this to the gold Aarch64 developer, but I failed to
notice that the fix wasn't in the next patch. Andreas just noticed the
same problem, so I just approved his patch.
-cary
On Mon, Sep 22, 2014 at 11:27 PM, Slava Barinov <v.barinov@samsung.com> wrote:
> Linking aarch64-reloc-property obj to gold during build.
>
> Signed-off-by: Slava Barinov <v.barinov@samsung.com>
> ---
> Hello,
>
> I've got linkage problems during gold build for aarch64 architecture with
>
> gold/aarch64.cc:453: undefined reference to `gold::AArch64_reloc_property_table::AArch64_reloc_property_table()'
>
> Just adding aarch64-reloc-property to binary just like it's done for arm helped.
>
> gold/configure.tgt | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/gold/configure.tgt b/gold/configure.tgt
> index 9a75070..59a681e 100644
> --- a/gold/configure.tgt
> +++ b/gold/configure.tgt
> @@ -146,6 +146,7 @@ arm*-*-*)
> ;;
> aarch64*-*)
> targ_obj=aarch64
> + targ_extra_obj=aarch64-reloc-property
> targ_machine=EM_AARCH64
> targ_size=64
> targ_extra_size=32
> --
> 2.1.1
>