diff options
author | Cary Coutant <ccoutant@google.com> | 2011-09-26 23:00:17 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2011-09-26 23:00:17 +0000 |
commit | 1d3cd82aaea90e11219ebf3022f1d3a94250b4dd (patch) | |
tree | c643d2c2fe752c136ecdeefd3acf14dadb83e619 /gold/plugin.h | |
parent | 9ac834a2fa9d347678402937ce6127baf229d303 (diff) | |
download | binutils-redhat-1d3cd82aaea90e11219ebf3022f1d3a94250b4dd.tar.gz |
include/ChangeLog
gcc PR lto/47247
* plugin-api.h (enum ld_plugin_symbol_resolution): Add
LDPR_PREVAILING_DEF_IRONLY_EXP.
(enum ld_plugin_tag): Add LDPT_GET_SYMBOLS_V2.
gold/ChangeLog
gcc PR lto/47247
* plugin.cc (get_symbols_v2): New function.
(Plugin::load): Add LDPT_GET_SYMBOLS_V2.
(is_referenced_from_outside): New function.
(Pluginobj::get_symbol_resolution_info): Add version parameter, return
LDPR_PREVAILING_DEF_IRONLY_EXP when using new version.
(get_symbols): Pass version parameter.
(get_symbols_v2): New function.
* plugin.h (Pluginobj::get_symbol_resolution_info): Add version
parameter.
* testsuite/plugin_test.c (get_symbols_v2): New static variable.
(onload): Add LDPT_GET_SYMBOLS_V2.
(all_symbols_read_hook): Use get_symbols_v2; check for
LDPR_PREVAILING_DEF_IRONLY_EXP.
* testsuite/plugin_test_3.sh: Update expected results.
Diffstat (limited to 'gold/plugin.h')
-rw-r--r-- | gold/plugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/plugin.h b/gold/plugin.h index 4c9445a8c4..32ffe35fc3 100644 --- a/gold/plugin.h +++ b/gold/plugin.h @@ -393,7 +393,9 @@ class Pluginobj : public Object // Fill in the symbol resolution status for the given plugin symbols. ld_plugin_status - get_symbol_resolution_info(int nsyms, ld_plugin_symbol* syms) const; + get_symbol_resolution_info(int nsyms, + ld_plugin_symbol* syms, + int version) const; // Store the incoming symbols from the plugin for later processing. void |