diff options
-rw-r--r-- | gold/ChangeLog | 5 | ||||
-rw-r--r-- | gold/symtab.cc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 4ba85c9..0cd5e27 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2012-05-25 Sriraman Tallam <tmsriram@google.com> + + * symtab.cc (Symbol_table::define_special_symbol): + Initialize *poldsym to prevent uninitialized variable errors. + 2012-05-23 Cary Coutant <ccoutant@google.com> * layout.cc (Layout::section_name_mapping): Add rules to handle diff --git a/gold/symtab.cc b/gold/symtab.cc index ebce5ca..fd81e8bd 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -1682,6 +1682,7 @@ Symbol_table::define_special_symbol(const char** pname, const char** pversion, bool* resolve_oldsym) { *resolve_oldsym = false; + *poldsym = NULL; // If the caller didn't give us a version, see if we get one from // the version script. |