aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-06-28 05:39:45 +0000
committerIan Lance Taylor <ian@airs.com>2011-06-28 05:39:45 +0000
commit6d1c4efb9c89fcaca4c24f0ef0535a706136d544 (patch)
tree0500c7bbf28bf9151513779d517f6cab15e2e0c7 /gold/symtab.h
parentdaily update (diff)
downloadbinutils-gdb-6d1c4efb9c89fcaca4c24f0ef0535a706136d544.tar.gz
binutils-gdb-6d1c4efb9c89fcaca4c24f0ef0535a706136d544.tar.bz2
binutils-gdb-6d1c4efb9c89fcaca4c24f0ef0535a706136d544.zip
* symtab.cc (Symbol::versioned_name): New function.
(Symbol_table::add_to_final_symtab): Use versioned_name when appropriate. (Symbol_table::sized_write_symbol): Likewise. * symtab.h (class Symbol): Declare versioned_name. * stringpool.h (class Stringpool_template): Add variant of add which takes a std::basic_string. * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_12. (ver_test_12_SOURCES, ver_test_12_DEPENDENCIES): New variables. (ver_test_12_LDFLAGS, ver_test_12_LDADD): New variables. (ver_test_12.o): New target. * testsuite/Makefile.in: Rebuild.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 51c31d52d6c..9ba9c08fc38 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -1,6 +1,6 @@
// symtab.h -- the gold symbol table -*- C++ -*-
-// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@ -136,6 +136,10 @@ class Symbol
set_is_default()
{ this->is_def_ = true; }
+ // Return the symbol's name as name@version (or name@@version).
+ std::string
+ versioned_name() const;
+
// Return the symbol source.
Source
source() const