diff --git a/bolt/src/RewriteInstance.cpp b/bolt/src/RewriteInstance.cpp index eb783154f954..115c930ee0c3 100644 --- a/bolt/src/RewriteInstance.cpp +++ b/bolt/src/RewriteInstance.cpp @@ -5425,7 +5425,8 @@ bool RewriteInstance::willOverwriteSection(StringRef SectionName) { } bool RewriteInstance::isDebugSection(StringRef SectionName) { - if (SectionName.startswith(".debug_") || SectionName == ".gdb_index") + if (SectionName.startswith(".debug_") || SectionName == ".gdb_index" || + SectionName == ".stab" || SectionName == ".stabstr") return true; return false;