diff options
author | Evgenii Stepanov <eugenis@google.com> | 2016-03-03 11:36:36 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2016-03-03 11:42:13 -0800 |
commit | 95ecdfbfcbf508919652a0254ee2b8c6572a949e (patch) | |
tree | 826f8608795c4781115a6c508a498d61795cd03d /include/plugin-api.h | |
parent | bdf7e23048b68171c01f2498cc46670a76e68c4d (diff) | |
download | gdb-95ecdfbfcbf508919652a0254ee2b8c6572a949e.zip gdb-95ecdfbfcbf508919652a0254ee2b8c6572a949e.tar.gz gdb-95ecdfbfcbf508919652a0254ee2b8c6572a949e.tar.bz2 |
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.
Diffstat (limited to 'include/plugin-api.h')
-rw-r--r-- | include/plugin-api.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/plugin-api.h b/include/plugin-api.h index d7f9ee3..811e6e4 100644 --- a/include/plugin-api.h +++ b/include/plugin-api.h @@ -384,7 +384,8 @@ enum ld_plugin_tag LDPT_ALLOW_SECTION_ORDERING = 24, LDPT_GET_SYMBOLS_V2 = 25, LDPT_ALLOW_UNIQUE_SEGMENT_FOR_SECTIONS = 26, - LDPT_UNIQUE_SEGMENT_FOR_SECTIONS = 27 + LDPT_UNIQUE_SEGMENT_FOR_SECTIONS = 27, + LDPT_GET_SYMBOLS_V3 = 28 }; /* The plugin transfer vector. */ |