objtool: Fix segfault in .cold detection with -ffunction-sections