Remove "collect" forms of generic linker add symbols functions
authorAlan Modra <amodra@gmail.com>
Fri, 23 Dec 2016 12:58:38 +0000 (23:28 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 23 Dec 2016 13:45:58 +0000 (00:15 +1030)
commitb9fc2576a13367070c741c7ea1d364a483eed0e4
treef1c929b042a8fb0767322dd277909ec4c8f65c9d
parent865422fafaf387745b2979d47b6f448d28e0edb8
Remove "collect" forms of generic linker add symbols functions

Nothing calls them and they were in the way of a bug fix.

* linker.c (generic_link_add_symbols): Delete.  Merge into..
(_bfd_generic_link_add_symbols): ..here.
(generic_link_check_archive_element_no_collect): Delete.
(generic_link_check_archive_element_collect): Likewise.
(generic_link_add_object_symbols): Remove "collect" param.  Update
callers.
(generic_link_add_symbol_list): Likewise.
(generic_link_check_archive_element): Likewise.  Call
bfd_link_add_symbols rather than generic_link_add_object_symbols.
* libbfd-in.h (_bfd_generic_link_add_symbols_collect): Delete.
* libbfd.h: Regenerate.
bfd/ChangeLog
bfd/libbfd-in.h
bfd/libbfd.h
bfd/linker.c