[llvm-nm] Support section type 'u': STB_GNU_UNIQUE

llvm-svn: 359380
This commit is contained in:
Fangrui Song 2019-04-27 15:32:53 +00:00
parent 3879b2cd45
commit 0969af6962
1 changed files with 4 additions and 0 deletions

View File

@ -934,6 +934,10 @@ static char getSymbolNMTypeChar(ELFObjectFileBase &Obj,
return '?';
}
uint8_t Binding = SymI->getOther() >> 4;
if (Binding == ELF::STB_GNU_UNIQUE)
return 'u';
elf_section_iterator SecI = *SecIOrErr;
if (SecI != Obj.section_end()) {
uint32_t Type = SecI->getType();