Index: source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp =================================================================== --- source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -2019,12 +2019,18 @@ // No need to add non-section symbols that have no names if (symbol.getType() != STT_SECTION && (symbol_name == NULL || symbol_name[0] == '\0')) + { + symtab->AddSymbol(Symbol()); continue; + } // Skipping oatdata and oatexec sections if it is requested. See details above the // definition of skip_oatdata_oatexec for the reasons. if (skip_oatdata_oatexec && (::strcmp(symbol_name, "oatdata") == 0 || ::strcmp(symbol_name, "oatexec") == 0)) + { + symtab->AddSymbol(Symbol()); continue; + } SectionSP symbol_section_sp; SymbolType symbol_type = eSymbolTypeInvalid; @@ -2141,7 +2147,10 @@ } } if (mapping_symbol) + { + symtab->AddSymbol(Symbol()); continue; + } } } else if (arch.GetMachine() == llvm::Triple::aarch64) @@ -2164,7 +2173,10 @@ } } if (mapping_symbol) + { + symtab->AddSymbol(Symbol()); continue; + } } }