diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2010-03-05 21:04:59 +0000 |
---|---|---|
committer | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2010-03-05 21:04:59 +0000 |
commit | 44ec90b93bb675836c5ebf1498463393f72acb97 (patch) | |
tree | 813b32cf553fd1284d2f727ed1075862ffa337a9 /gold/dynobj.h | |
parent | f870a310ee7fbfd6ccaea95d632063cbdbd2b9c9 (diff) | |
download | gdb-44ec90b93bb675836c5ebf1498463393f72acb97.zip gdb-44ec90b93bb675836c5ebf1498463393f72acb97.tar.gz gdb-44ec90b93bb675836c5ebf1498463393f72acb97.tar.bz2 |
include:
* elf/common.h (VER_FLG_*): Document.
(VER_FLG_INFO): Define.
gold:
* dynobj.h (Verdef::Verdef): Add is_info arg, is_info member
function, is_info_ member.
* dynobj.cc (Verdef::write): Set VER_FLG_INFO if this->is_info_.
(Versions::Versions): Update caller.
(Versions::define_base_version): Likewise.
(Versions::add_def): Likewise.
elfcpp:
* elfcpp.h (VER_FLG_INFO): Define.
binutils:
* readelf.c (get_ver_flags): Handle VER_FLG_INFO.
Diffstat (limited to 'gold/dynobj.h')
-rw-r--r-- | gold/dynobj.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gold/dynobj.h b/gold/dynobj.h index 71d1b68..bc69187 100644 --- a/gold/dynobj.h +++ b/gold/dynobj.h @@ -360,9 +360,9 @@ class Verdef : public Version_base { public: Verdef(const char* name, const std::vector<std::string>& deps, - bool is_base, bool is_weak, bool is_symbol_created) + bool is_base, bool is_weak, bool is_info, bool is_symbol_created) : name_(name), deps_(deps), is_base_(is_base), is_weak_(is_weak), - is_symbol_created_(is_symbol_created) + is_info_(is_info), is_symbol_created_(is_symbol_created) { } // Return the version name. @@ -391,6 +391,11 @@ class Verdef : public Version_base clear_weak() { this->is_weak_ = false; } + // Return whether this definition is informational. + bool + is_info() const + { return this->is_info_; } + // Return whether a version symbol has been created for this // definition. bool @@ -419,6 +424,8 @@ class Verdef : public Version_base bool is_base_; // Whether this version is weak. bool is_weak_; + // Whether this version is informational. + bool is_info_; // Whether a version symbol has been created. bool is_symbol_created_; }; |