[llvm] r269338 - llvm-readobj: Fix the GNU section header flags for SHF_MASKPROC and SHF_MASKOS
Hemant Kulkarni via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 12:58:52 PDT 2016
Author: khemant
Date: Thu May 12 14:58:52 2016
New Revision: 269338
URL: http://llvm.org/viewvc/llvm-project?rev=269338&view=rev
Log:
llvm-readobj: Fix the GNU section header flags for SHF_MASKPROC and SHF_MASKOS
Modified:
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=269338&r1=269337&r2=269338&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Thu May 12 14:58:52 2016
@@ -992,6 +992,8 @@ static const EnumEntry<unsigned> ElfSect
ENUM_ENT(SHF_OS_NONCONFORMING, "o"),
ENUM_ENT(SHF_GROUP, "G"),
ENUM_ENT(SHF_TLS, "T"),
+ ENUM_ENT(SHF_MASKOS, "o"),
+ ENUM_ENT(SHF_MASKPROC, "p"),
ENUM_ENT_1(XCORE_SHF_CP_SECTION),
ENUM_ENT_1(XCORE_SHF_DP_SECTION),
};
@@ -1042,9 +1044,9 @@ static std::string getGNUFlags(uint64_t
Str += Entry.AltName;
break;
default:
- if (Flags & ELF::SHF_MASKOS)
+ if (Flag & ELF::SHF_MASKOS)
Str += "o";
- else if (Flags & ELF::SHF_MASKPROC)
+ else if (Flag & ELF::SHF_MASKPROC)
Str += "p";
else if (Flag)
Str += "x";
More information about the llvm-commits
mailing list