summaryrefslogtreecommitdiff
path: root/gold/dynobj.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-22 23:08:22 +0000
committerIan Lance Taylor <iant@google.com>2007-10-22 23:08:22 +0000
commit46fe162319cc0ad598f8aa74495ccde823349da2 (patch)
tree89aa9522a5133a2ee339f480d29f069908315988 /gold/dynobj.h
parent60dc88db8bb295650876632bce467ba703fea555 (diff)
downloadbinutils-gdb-46fe162319cc0ad598f8aa74495ccde823349da2.tar.gz
Fix versions of copied symbols.
Diffstat (limited to 'gold/dynobj.h')
-rw-r--r--gold/dynobj.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/gold/dynobj.h b/gold/dynobj.h
index e6b0a526b01..78caaf9da30 100644
--- a/gold/dynobj.h
+++ b/gold/dynobj.h
@@ -411,7 +411,8 @@ class Versions
// SYM is going into the dynamic symbol table and has a version.
// Record the appropriate version information.
void
- record_version(const General_options*, Stringpool*, const Symbol* sym);
+ record_version(const General_options*, const Symbol_table* symtab,
+ Stringpool*, const Symbol* sym);
// Set the version indexes. DYNSYM_INDEX is the index we should use
// for the next dynamic symbol. We add new dynamic symbols to SYMS
@@ -434,7 +435,8 @@ class Versions
// version section (.gnu.version).
template<int size, bool big_endian>
void
- symbol_section_contents(const Stringpool*, unsigned int local_symcount,
+ symbol_section_contents(const Symbol_table*, const Stringpool*,
+ unsigned int local_symcount,
const std::vector<Symbol*>& syms,
unsigned char**, unsigned int*
ACCEPT_SIZE_ENDIAN) const;
@@ -472,9 +474,14 @@ class Versions
add_need(Stringpool*, const char* filename, const char* name,
Stringpool::Key);
+ // Get the dynamic object to use for SYM.
+ Dynobj*
+ get_dynobj_for_sym(const Symbol_table*, const Symbol* sym) const;
+
// Return the version index to use for SYM.
unsigned int
- version_index(const Stringpool*, const Symbol* sym) const;
+ version_index(const Symbol_table*, const Stringpool*,
+ const Symbol* sym) const;
// We keep a hash table mapping canonicalized name/version pairs to
// a version base.