From f0641a0b382db7403f04fab3d4e8fac25a2b68af Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 7 Nov 2006 04:40:46 +0000 Subject: Rework stringpool and hash tables so that we always generate the same output regardless of randomize_va_space. --- gold/symtab.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gold/symtab.h') diff --git a/gold/symtab.h b/gold/symtab.h index f544e06..6589899 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -683,7 +683,7 @@ class Symbol_table // Canonicalize a symbol name for use in the hash table. const char* canonicalize_name(const char* name) - { return this->namepool_.add(name); } + { return this->namepool_.add(name, NULL); } // Possibly issue a warning for a reference to SYM at LOCATION which // is in OBJ. @@ -718,9 +718,9 @@ class Symbol_table // Add a symbol. template Symbol* - add_from_object(Object*, const char *name, - const char *version, bool def, - const elfcpp::Sym& sym); + add_from_object(Object*, const char *name, Stringpool::Key name_key, + const char *version, Stringpool::Key version_key, + bool def, const elfcpp::Sym& sym); // Resolve symbols. template @@ -783,7 +783,7 @@ class Symbol_table // The type of the symbol hash table. - typedef std::pair Symbol_table_key; + typedef std::pair Symbol_table_key; struct Symbol_table_hash { -- cgit v1.1