[PATCH 4.9 02/29] objtool: Move checking code to check.c