aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-12-23 23:43:54 +1030
committerAlan Modra <amodra@gmail.com>2016-12-24 00:20:03 +1030
commit6eda96bcf3a53843feb5d6d4441f0d9da7bc8a75 (patch)
treeabb74ff00e70df77e9fade2357c452d69adfd5db /bfd
parentb9fc2576a13367070c741c7ea1d364a483eed0e4 (diff)
downloadfsf-binutils-gdb-6eda96bcf3a53843feb5d6d4441f0d9da7bc8a75.zip
fsf-binutils-gdb-6eda96bcf3a53843feb5d6d4441f0d9da7bc8a75.tar.gz
fsf-binutils-gdb-6eda96bcf3a53843feb5d6d4441f0d9da7bc8a75.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/linker.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ecab270..99c7062 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2016-12-23 Alan Modra <amodra@gmail.com>
+ * linker.c (generic_link_check_archive_element): Call target
+ bfd_link_add_symbols to add element symbols.
+
+2016-12-23 Alan Modra <amodra@gmail.com>
+
* linker.c (generic_link_add_symbols): Delete. Merge into..
(_bfd_generic_link_add_symbols): ..here.
(generic_link_check_archive_element_no_collect): Delete.
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. */