forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -7267,7 +7267,15 @@ get_ver_flags (unsigned int flags)
|
||||
strcat (buff, "WEAK ");
|
||||
}
|
||||
|
||||
if (flags & ~(VER_FLG_BASE | VER_FLG_WEAK))
|
||||
if (flags & VER_FLG_INFO)
|
||||
{
|
||||
if (flags & (VER_FLG_BASE|VER_FLG_WEAK))
|
||||
strcat (buff, "| ");
|
||||
|
||||
strcat (buff, "INFO ");
|
||||
}
|
||||
|
||||
if (flags & ~(VER_FLG_BASE | VER_FLG_WEAK | VER_FLG_INFO))
|
||||
strcat (buff, "| <unknown>");
|
||||
|
||||
return buff;
|
||||
|
||||
Reference in New Issue
Block a user