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)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 12 Jun 2013 10:23:01 +0000 (11:23 +0100)
commitab6ea34aaa9cdc114f08a6123192cdd4518d6dc9
tree8a2cef419d80b54769da7cf5853ff4292f9e8237
parent96758576259dba50760af10253055388433f12f7
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>
arch/arm64/Kconfig
arch/arm64/kernel/vmlinux.lds.S
scripts/sortextable.c