This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] gold: define targ_extra_obj for aarch64
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: binutils at sourceware dot org
- Date: Tue, 14 Oct 2014 22:02:21 +0200
- Subject: [PATCH] gold: define targ_extra_obj for aarch64
- Authentication-results: sourceware.org; auth=none
This fixes a build error when configuring with
--enable-targets=aarch64-linux.
aarch64.o: In function `do_select_as_default_target':
/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:453: undefined reference to `gold::AArch64_reloc_property_table::AArch64_reloc_property_table()'
/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:453: undefined reference to `gold::AArch64_reloc_property_table::AArch64_reloc_property_table()'
/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:453: undefined reference to `gold::AArch64_reloc_property_table::AArch64_reloc_property_table()'
/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:453: undefined reference to `gold::AArch64_reloc_property_table::AArch64_reloc_property_table()'
aarch64.o: In function `relocate':
/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:3258: undefined reference to `gold::AArch64_reloc_property_table::reloc_name_in_error_message(unsigned int)'
/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:3258: undefined reference to `gold::AArch64_reloc_property_table::reloc_name_in_error_message(unsigned int)'
/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:3258: undefined reference to `gold::AArch64_reloc_property_table::reloc_name_in_error_message(unsigned int)'
/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:3258: undefined reference to `gold::AArch64_reloc_property_table::reloc_name_in_error_message(unsigned int)'
aarch64.o: In function `global':
/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:2985: undefined reference to `gold::AArch64_reloc_property_table::reloc_name_in_error_message(unsigned int)'
aarch64.o:/home/andreas/src/binutils/test/gold/../../binutils/gold/aarch64.cc:2985: more undefined references to `gold::AArch64_reloc_property_table::reloc_name_in_error_message(unsigned int)' follow
Andreas.
* configure.tgt (targ_extra_obj) [aarch64*-*]: Define.
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.2
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."