diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c
index 7ec85d567598c5047fbe00b9660c9e7fc76870cf..f8cef271dfc79b4c2205201f7ed74632bb01897e 100644
--- a/tools/objtool/elf.c
+++ b/tools/objtool/elf.c
@@ -301,7 +301,7 @@ static int read_symbols(struct elf *elf)
 			if (sym->type != STT_FUNC)
 				continue;
 			sym->pfunc = sym->cfunc = sym;
-			coldstr = strstr(sym->name, ".cold.");
+			coldstr = strstr(sym->name, ".cold");
 			if (!coldstr)
 				continue;