Call target specific add_symbols function
Alan Modra
amodra@gmail.com
Fri Dec 23 13:54:00 GMT 2016
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
More information about the Binutils
mailing list