kbuild: try harder to find symbol names in modpost
authorSam Ravnborg <sam@ravnborg.org>
Fri, 18 Jan 2008 20:04:34 +0000 (21:04 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 28 Jan 2008 22:14:40 +0000 (23:14 +0100)
commit9ad21c3f3ecffeb56be7b35030d7ec2f30b6fe11
treeb13cef078ebe25ddfca57f64404a664440713672
parentd1f25e6658943569f2713dfde1b9d74e2f6c7243
kbuild: try harder to find symbol names in modpost

The relocation record sometimes contained an address
which was not an exactly match for a symbol.

Implment some simple logic such that if there
is a symbol within 20 bytes of the address contained
in the relocation record then print the name of this
symbol.

With this change modpost could find symbol names
for the remaining .init.text symbols in my
allyesconfig build for x86_64.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/mod/modpost.c
scripts/mod/modpost.h