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)
commitadace89562c7a9645b8dc84f6e1ac7ba8756094e
tree8a2cef419d80b54769da7cf5853ff4292f9e8237
parent73150c983ac1f9b7653cfd3823b1ad4a44aad3bf
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