[PATCH] Fix gold build for aarch64

Slava Barinov v.barinov@samsung.com
Tue Sep 23 06:51:00 GMT 2014


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



More information about the Binutils mailing list