This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Call target specific add_symbols function
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sat, 24 Dec 2016 00:24:12 +1030
- Subject: Call target specific add_symbols function
- Authentication-results: sourceware.org; auth=none
This allows targets that have target specific code to add object
symbols to make use of the generic archive handling. Fixes a long
standing rs6000-aix target bug that shows up as
FAIL: sysroot-prefix common plain -Lpath, quoted
FAIL: sysroot-prefix common plain -Lpath, unquoted
FAIL: sysroot-prefix common full-path, quoted
FAIL: sysroot-prefix common full-path, unquoted
FAIL: sysroot-prefix common full-path =-prefixed with empty, quoted
FAIL: sysroot-prefix common full-path =-prefixed with empty, unquoted
FAIL: sysroot-prefix common plain =-prefixed with empty, quoted
FAIL: sysroot-prefix common plain =-prefixed with empty, unquoted
FAIL: sysroot-prefix common plain =-prefixed -Lpath, quoted
FAIL: sysroot-prefix common plain =-prefixed -Lpath, unquoted
FAIL: sysroot-prefix common full-path =-prefixed without, quoted
FAIL: sysroot-prefix common full-path =-prefixed without, unquoted
FAIL: --entry foo archive
FAIL: --entry foo -u foo archive
* linker.c (generic_link_check_archive_element): Call target
bfd_link_add_symbols to add element symbols.
diff --git a/bfd/linker.c b/bfd/linker.c
index 9763b84..3bee361 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -1064,7 +1064,7 @@ generic_link_check_archive_element (bfd *abfd,
return FALSE;
/* Potentially, the add_archive_element hook may have set a
substitute BFD for us. */
- return generic_link_add_object_symbols (abfd, info);
+ return bfd_link_add_symbols (abfd, info);
}
/* P is a common symbol. */
--
Alan Modra
Australia Development Lab, IBM