From: Alan Modra Date: Fri, 23 Dec 2016 13:13:54 +0000 (+1030) Subject: Call target specific add_symbols function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6eda96bcf3a53843feb5d6d4441f0d9da7bc8a75;p=binutils-gdb.git Call target specific add_symbols function This allows targets that have target specific code to add object symbols to make use of the generic archive handling. * linker.c (generic_link_check_archive_element): Call target bfd_link_add_symbols to add element symbols. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ecab2705caa..99c7062a6e6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2016-12-23 Alan Modra + + * linker.c (generic_link_check_archive_element): Call target + bfd_link_add_symbols to add element symbols. + 2016-12-23 Alan Modra * linker.c (generic_link_add_symbols): Delete. Merge into.. diff --git a/bfd/linker.c b/bfd/linker.c index 9763b84fb85..3bee361de05 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. */