x86: Refactor relocation to prepare for 64-bit
authorSimon Glass <sjg@chromium.org>
Mon, 16 Jan 2017 14:03:53 +0000 (07:03 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 6 Feb 2017 03:38:46 +0000 (11:38 +0800)
commitdc7e21339e2d386cae31b8a1713274025226b333
treeb71feb162d0e1e8e15742a74655cdff046688ff7
parent6bda55a38ce4d9c5fcab5a5011e06469662954b3
x86: Refactor relocation to prepare for 64-bit

Move the core relocation code into a separate function so that the checking
code can be used for 64-bit relocation also.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/relocate.c