objtool: Handle calling non-function symbols in other sections
authorJulien Thierry <jthierry@redhat.com>
Tue, 15 Sep 2020 07:53:18 +0000 (08:53 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 21 Sep 2020 15:17:36 +0000 (10:17 -0500)
commit2b232a22d8225df419a92ca69ddeeb4e5fe902f7
tree4c896700fe91dfee8e35d30a8fb0f1907258c65c
parentfb136219f0e2b417d84e67b2a3adc1f933997d04
objtool: Handle calling non-function symbols in other sections

Relocation for a call destination could point to a symbol that has
type STT_NOTYPE.

Lookup such a symbol when no function is available.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
tools/objtool/check.c