arm64: extable: sort the exception table at build time
authorWill Deacon <will.deacon@arm.com>
Wed, 8 May 2013 16:29:24 +0000 (17:29 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 15 May 2014 18:59:53 +0000 (19:59 +0100)
commitdc1307d2947cef80a10f53f1aa136b72accec79f
treeca0dfdba3b743fb4490bcd988311f0b703b25178
parent179e79828c8daac4e902fb8716fbedc275befc34
arm64: extable: sort the exception table at build time

As is done for other architectures, sort the exception table at
build-time rather than during boot.

Since sortextable appears to be a standalone C program relying on the
host elf.h to provide EM_AARCH64, I've had to add a conditional check in
order to allow cross-compilation on machines that aren't running a
bleeding-edge libc-dev.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit adace89562c7a9645b8dc84f6e1ac7ba8756094e)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/Kconfig
arch/arm64/kernel/vmlinux.lds.S
scripts/sortextable.c