* plugin.cc (Plugin::load): Move LDPT_MESSAGE to front of transfer
authorCary Coutant <ccoutant@google.com>
Tue, 16 Dec 2008 19:19:16 +0000 (19:19 +0000)
committerCary Coutant <ccoutant@google.com>
Tue, 16 Dec 2008 19:19:16 +0000 (19:19 +0000)
commitabc8dcbad2b489919dfb608e82d75f204b14b594
tree1a4f81ab8dbe68df1497f5c4d4425784a25fc060
parentbb5ef15eff1baa44a382c9be60383e66cc26badd
* plugin.cc (Plugin::load): Move LDPT_MESSAGE to front of transfer
vector.
(Plugin_manager::claim_file): Create plugin object even if
plugin did not call the add_symbols callback.
(Plugin_obj::get_symbol_resolution_info): Guard against plugin
asking for more symbols than were added.
* testsuite/Makefile.am (plugin_test_1): Add test case with
no global symbols.
(empty.syms): New target.
* testsuite/Makefile.in: Regenerate.
* testsuite/plugin_test.c (claim_file_hook): Add new debug
message. Don't call add_symbols if no globals.
(all_symbols_read_hook): Don't provide replacement for empty
claimed file.
gold/ChangeLog
gold/plugin.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/plugin_test.c