get_symbols() plugin API tweak to support --start-lib/--end-lib.
authorEvgenii Stepanov <eugenis@google.com>
Thu, 3 Mar 2016 19:36:36 +0000 (11:36 -0800)
committerCary Coutant <ccoutant@gmail.com>
Thu, 3 Mar 2016 19:42:13 +0000 (11:42 -0800)
commit95ecdfbfcbf508919652a0254ee2b8c6572a949e
tree826f8608795c4781115a6c508a498d61795cd03d
parentbdf7e23048b68171c01f2498cc46670a76e68c4d
get_symbols() plugin API tweak to support --start-lib/--end-lib.

Let the plugin know that a file is not being included in the link by
returning LDPS_NO_SYMS from get_symbols().

include/
* plugin-api.h (enum ld_plugin_tag): Add LDPT_GET_SYMBOLS_V3.

gold/
* plugin.h (Pluginobj::get_symbol_resolution_info): Add version
parameter.
* plugin.cc (get_symbols_v3): New function.
(Plugin::load): Add LDPT_GET_SYMBOLS_V3.
(Pluginobj::get_symbol_resolution_info): Return LDPS_NO_SYMS when using
new version.
gold/ChangeLog
gold/plugin.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/plugin_start_lib_test.c [new file with mode: 0644]
gold/testsuite/plugin_start_lib_test_2.c [new file with mode: 0644]
gold/testsuite/plugin_test.c
gold/testsuite/plugin_test_start_lib.sh [new file with mode: 0755]
include/ChangeLog
include/plugin-api.h