benchcomp: Look at all sections whose names begin with .text, not just the .text section.
llvm-svn: 265859
GitOrigin-RevId: 86e8cc8a9b0689ebb1a797bf7070bea092408653
diff --git a/utils/benchcomp/main.go b/utils/benchcomp/main.go
index 433add5..94acafc 100644
--- a/utils/benchcomp/main.go
+++ b/utils/benchcomp/main.go
@@ -22,7 +22,7 @@
panic(err.Error())
}
for _, sym := range syms {
- if sym.Section < elf.SectionIndex(len(f.Sections)) && f.Sections[sym.Section].Name == ".text" {
+ if sym.Section < elf.SectionIndex(len(f.Sections)) && strings.HasPrefix(f.Sections[sym.Section].Name, ".text") {
m[sym.Name] = float64(sym.Size)
}
}