extable: add support for relative extables to search and sort routines
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 1 Jan 2016 11:39:09 +0000 (12:39 +0100)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 15:18:44 +0000 (23:18 +0800)
commit5f1dcb6d02a6f6dd104539a19f7db8a189ba4bb8
tree249631af01cdb356506ae748c9835420d9a9430f
parentafc69bdc2ac79942a59f67296738ba8e85e784fb
extable: add support for relative extables to search and sort routines

This adds support to the generic search_extable() and sort_extable()
implementations for dealing with exception table entries whose fields
contain relative offsets rather than absolute addresses.

Acked-by: Helge Deller <deller@gmx.de>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: H. Peter Anvin <hpa@linux.intel.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Acked-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit a272858a3c1ecd4a935ba23c66668f81214bd110)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
lib/extable.c