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) {
1696
1696
return llvm::StringSwitch<SectionType>(Name)
1697
1697
.Case (" .ARM.exidx" , eSectionTypeARMexidx)
1698
1698
.Case (" .ARM.extab" , eSectionTypeARMextab)
1699
- .Cases (" .bss" , " .tbss" , eSectionTypeZeroFill)
1700
1699
.Case (" .ctf" , eSectionTypeDebug)
1701
1700
.Cases (" .data" , " .tdata" , eSectionTypeData)
1702
1701
.Case (" .eh_frame" , eSectionTypeEHFrame)
@@ -1713,6 +1712,10 @@ SectionType ObjectFileELF::GetSectionType(const ELFSectionHeaderInfo &H) const {
1713
1712
if (H.sh_flags & SHF_EXECINSTR)
1714
1713
return eSectionTypeCode;
1715
1714
break ;
1715
+ case SHT_NOBITS:
1716
+ if (H.sh_flags & SHF_ALLOC)
1717
+ return eSectionTypeZeroFill;
1718
+ break ;
1716
1719
case SHT_SYMTAB:
1717
1720
return eSectionTypeELFSymbolTable;
1718
1721
case SHT_DYNSYM:
You can’t perform that action at this time.
0 commit comments