arm64: ensure the kernel is compiled for LP64
authorAndrew Pinski <apinski@cavium.com>
Mon, 18 Sep 2017 10:20:20 +0000 (11:20 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 18 Sep 2017 10:20:20 +0000 (11:20 +0100)
commit3d6a7b99e3fa29b92d6288487e057e0a596bd2b0
tree954a9bf1e95bac58a2b2145589d79f509474181d
parentc73cc120a33e12e4e254b4b42bc613204ccb923b
arm64: ensure the kernel is compiled for LP64

The kernel needs to be compiled as a LP64 binary for ARM64, even when
using a compiler that defaults to code-generation for the ILP32 ABI.
Consequently, we need to explicitly pass '-mabi=lp64' (supported on
gcc-4.9 and newer).

Signed-off-by: Andrew Pinski <Andrew.Pinski@caviumnetworks.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
Reviewed-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Makefile