Index: ELFDumper.cpp =================================================================== --- ELFDumper.cpp +++ ELFDumper.cpp @@ -992,8 +992,12 @@ ENUM_ENT(SHF_OS_NONCONFORMING, "o"), ENUM_ENT(SHF_GROUP, "G"), ENUM_ENT(SHF_TLS, "T"), - ENUM_ENT_1(XCORE_SHF_CP_SECTION), - ENUM_ENT_1(XCORE_SHF_DP_SECTION), + ENUM_ENT_1(SHF_COMPRESSED), +}; + +static const EnumEntry ElfXCoreSectionFlags[] = { + LLVM_READOBJ_ENUM_ENT(ELF, XCORE_SHF_CP_SECTION), + LLVM_READOBJ_ENUM_ENT(ELF, XCORE_SHF_DP_SECTION) }; static const EnumEntry ElfAMDGPUSectionFlags[] = { @@ -3278,6 +3282,9 @@ SectionFlags.insert(SectionFlags.end(), std::begin(ElfX86_64SectionFlags), std::end(ElfX86_64SectionFlags)); break; + case EM_XCORE: + SectionFlags.insert(SectionFlags.end(), std::begin(ElfXCoreSectionFlags), + std::end(ElfXCoreSectionFlags)); default: // Nothing to do. break;