aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2016-03-03 11:36:36 -0800
committerCary Coutant <ccoutant@gmail.com>2016-03-03 11:42:13 -0800
commit95ecdfbfcbf508919652a0254ee2b8c6572a949e (patch)
tree826f8608795c4781115a6c508a498d61795cd03d /include
parentbdf7e23048b68171c01f2498cc46670a76e68c4d (diff)
downloadgdb-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')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/plugin-api.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 97bba8b..6a54ba2 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-03 Evgenii Stepanov <eugenis@google.com>
+
+ * plugin-api.h (enum ld_plugin_tag): Add LDPT_GET_SYMBOLS_V3.
+
2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
PR ld/19645
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. */