[llvm] r359380 - [llvm-nm] Support section type 'u': STB_GNU_UNIQUE
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 27 08:32:54 PDT 2019
Author: maskray
Date: Sat Apr 27 08:32:53 2019
New Revision: 359380
URL: http://llvm.org/viewvc/llvm-project?rev=359380&view=rev
Log:
[llvm-nm] Support section type 'u': STB_GNU_UNIQUE
Modified:
llvm/trunk/tools/llvm-nm/llvm-nm.cpp
Modified: llvm/trunk/tools/llvm-nm/llvm-nm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-nm/llvm-nm.cpp?rev=359380&r1=359379&r2=359380&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-nm/llvm-nm.cpp (original)
+++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp Sat Apr 27 08:32:53 2019
@@ -934,6 +934,10 @@ static char getSymbolNMTypeChar(ELFObjec
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();
More information about the llvm-commits
mailing list