[PATCH 4.9 22/51] objtool: Fix segfault in .cold detection with -ffunction-sections