diff options
author | Konrad Kleine <kkleine@redhat.com> | 2019-09-11 10:12:36 +0000 |
---|---|---|
committer | Konrad Kleine <kkleine@redhat.com> | 2019-09-11 10:12:36 +0000 |
commit | 813f05915d29904878d926f9849ca3dbe78096af (patch) | |
tree | fbbb7ee0e9cd4d2eed4374dd04a82bccb7e1e336 /lldb/source/Plugins/ObjectFile/ELF | |
parent | 3a4781bbf4f39a25562b4c61c9a9ab2483a96b41 (diff) | |
download | bcm5719-llvm-813f05915d29904878d926f9849ca3dbe78096af.tar.gz bcm5719-llvm-813f05915d29904878d926f9849ca3dbe78096af.zip |
[LLDB][ELF] Fixup for comments in D67390
llvm-svn: 371600
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index 20e26f033d1..e1f08ffaa18 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -2644,12 +2644,11 @@ Symtab *ObjectFileELF::GetSymtab() { // Sharable objects and dynamic executables usually have 2 distinct symbol // tables, one named ".symtab", and the other ".dynsym". The dynsym is a - // smaller version of the symtab that only contains global symbols. The - // information found in the dynsym is therefore also found in the symtab, - // while the reverse is not necessarily true. - // One exception to the above rule is when we have minidebuginfo embedded - // into a compressed .gnu_debugdata section. This section contains a .symtab - // from which all symbols already contained in the .dynsym are stripped. + // smaller version of the symtab that only contains global symbols. + // Information in the dynsym section is *usually* also found in the symtab, + // but this is not required as symtab entries can be removed after linking. + // The minidebuginfo format makes use of this facility to create smaller + // symbol tables. Section *symtab = section_list->FindSectionByType(eSectionTypeELFSymbolTable, true).get(); if (symtab) { |