Add function to set non-visibility part of st_other.

2014-03-10  Sasa Stankovic  <Sasa.Stankovic@imgtec.com>

gold/
	* symtab.h (Symbol::set_nonvis): New function.
This commit is contained in:
Cary Coutant 2014-03-10 13:38:20 -07:00
parent beacaa966b
commit 9b12c50063
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-03-10 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
* symtab.h (Symbol::set_nonvis): New function.
2014-03-10 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
* symtab.cc (Sized_symbol<32>::init_output_data):

View File

@ -259,6 +259,11 @@ class Symbol
nonvis() const
{ return this->nonvis_; }
// Set the non-visibility part of the st_other field.
void
set_nonvis(unsigned int nonvis)
{ this->nonvis_ = nonvis; }
// Return whether this symbol is a forwarder. This will never be
// true of a symbol found in the hash table, but may be true of
// symbol pointers attached to object files.