summaryrefslogtreecommitdiff
path: root/gold/dynobj.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-01-26 01:17:45 +0000
committerIan Lance Taylor <iant@google.com>2008-01-26 01:17:45 +0000
commit9b07f471e3360c9790f7ec83400e500e5f3098ca (patch)
treef2efce735a3f4314b493706a771566c5441f97be /gold/dynobj.cc
parent8f0a6da7a9e9d4b8258af20cfb5db072ace0ba86 (diff)
downloadbinutils-gdb-9b07f471e3360c9790f7ec83400e500e5f3098ca.tar.gz
Don't pass around the target in order to define symbols; get it from
the parameters instead.
Diffstat (limited to 'gold/dynobj.cc')
-rw-r--r--gold/dynobj.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/dynobj.cc b/gold/dynobj.cc
index 898e755d3ad..b07a53030a8 100644
--- a/gold/dynobj.cc
+++ b/gold/dynobj.cc
@@ -1415,8 +1415,8 @@ Versions::add_need(Stringpool* dynpool, const char* filename, const char* name,
// each new version definition.
unsigned int
-Versions::finalize(const Target* target, Symbol_table* symtab,
- unsigned int dynsym_index, std::vector<Symbol*>* syms)
+Versions::finalize(Symbol_table* symtab, unsigned int dynsym_index,
+ std::vector<Symbol*>* syms)
{
gold_assert(!this->is_finalized_);
@@ -1432,7 +1432,7 @@ Versions::finalize(const Target* target, Symbol_table* symtab,
// Create a version symbol if necessary.
if (!(*p)->is_symbol_created())
{
- Symbol* vsym = symtab->define_as_constant(target, (*p)->name(),
+ Symbol* vsym = symtab->define_as_constant((*p)->name(),
(*p)->name(), 0, 0,
elfcpp::STT_OBJECT,
elfcpp::STB_GLOBAL,