kallsyms: generalize address range checking
authorKees Cook <keescook@chromium.org>
Mon, 17 Mar 2014 02:48:27 +0000 (13:18 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Mar 2014 04:24:50 +0000 (14:54 +1030)
commit78eb71594b3265f3cfe871480235be158feebd0f
tree41e5d7a99e28239d8e04856edc02e34e3d963c96
parent0283f9a529c81e64bafea80d6d3e056d1c3f656d
kallsyms: generalize address range checking

This refactors the address range checks to be generalized instead of
specific to text range checks, in preparation for other range checks.
Also extracts logic for "is the symbol absolute" into a function.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
scripts/kallsyms.c