diff options
| -rw-r--r-- | lld/ELF/SyntheticSections.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index d51c288431d..4d5a2c820de 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -1849,8 +1849,7 @@ void SymbolTableBaseSection::finalizeContents() { // symbol. That is convenient for purpose of identifying where are local symbols // coming from. void SymbolTableBaseSection::postThunkContents() { - if (this->Type == SHT_DYNSYM) - return; + assert(this->Type == SHT_SYMTAB); // Move all local symbols before global symbols. auto E = std::stable_partition( |

