diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 49dc9ac77ba5..944c683eddca 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1363,7 +1363,7 @@ template void Writer::finalizeSections() { Sec->finalize(); // createThunks may have added local symbols to the static symbol table - applySynthetic({InX::SymTab, InX::ShStrTab, InX::StrTab}, + applySynthetic({InX::SymTab}, [](SyntheticSection *SS) { SS->postThunkContents(); }); }