File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
lldb/source/Plugins/ObjectFile/ELF Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1696,7 +1696,6 @@ static SectionType GetSectionTypeFromName(llvm::StringRef Name) {
16961696 return llvm::StringSwitch<SectionType>(Name)
16971697 .Case (" .ARM.exidx" , eSectionTypeARMexidx)
16981698 .Case (" .ARM.extab" , eSectionTypeARMextab)
1699- .Cases (" .bss" , " .tbss" , eSectionTypeZeroFill)
17001699 .Case (" .ctf" , eSectionTypeDebug)
17011700 .Cases (" .data" , " .tdata" , eSectionTypeData)
17021701 .Case (" .eh_frame" , eSectionTypeEHFrame)
@@ -1713,6 +1712,10 @@ SectionType ObjectFileELF::GetSectionType(const ELFSectionHeaderInfo &H) const {
17131712 if (H.sh_flags & SHF_EXECINSTR)
17141713 return eSectionTypeCode;
17151714 break ;
1715+ case SHT_NOBITS:
1716+ if (H.sh_flags & SHF_ALLOC)
1717+ return eSectionTypeZeroFill;
1718+ break ;
17161719 case SHT_SYMTAB:
17171720 return eSectionTypeELFSymbolTable;
17181721 case SHT_DYNSYM:
You can’t perform that action at this time.
0 commit comments