linux/arch/arm64
dann frazier 9cd462227b arm64: errata: Add -mpc-relative-literal-loads to build flags
[ Upstream commit 67dfa1751c ]

GCC6 (and Linaro's 2015.12 snapshot of GCC5) has a new default that uses
adrp/ldr or adrp/add to address literal pools. When CONFIG_ARM64_ERRATUM_843419
is enabled, modules built with this toolchain fail to load:

  module libahci: unsupported RELA relocation: 275

This patch fixes the problem by passing '-mpc-relative-literal-loads'
to the compiler.

Cc: stable@vger.kernel.org
Fixes: df057cc7b4 ("arm64: errata: add module build workaround for erratum #843419")
BugLink: http://bugs.launchpad.net/bugs/1533009
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Suggested-by: Christophe Lyon <christophe.lyon@linaro.org>
Signed-off-by: Dann Frazier <dann.frazier@canonical.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2016-04-18 08:51:10 -04:00
..
boot - dts: mt8173: fix compatible string 2015-06-01 17:06:51 +02:00
configs ARM: SoC 64-bit changes for v4.1 2015-04-22 09:23:58 -07:00
crypto Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2015-05-11 11:05:13 -07:00
include arm64: account for sparsemem section alignment when choosing vmemmap offset 2016-04-13 17:14:28 -04:00
kernel arm64: replace read_lock to rcu lock in call_step_hook 2016-03-24 08:40:20 -04:00
kvm arm/arm64: KVM: Fix ioctl error handling 2016-03-09 13:15:17 -05:00
lib arm64: __clear_user: handle exceptions on strb 2014-11-13 15:21:26 +00:00
mm arm64: vmemmap: use virtual projection of linear region 2016-04-13 17:14:27 -04:00
net arm64: bpf: fix mod-by-zero case 2016-01-31 11:23:39 -08:00
xen arm: xen: implement multicall hypercall support. 2014-04-24 13:09:46 +01:00
Kconfig arm64: errata: add module build workaround for erratum #843419 2015-09-29 19:26:00 +02:00
Kconfig.debug coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
Makefile arm64: errata: Add -mpc-relative-literal-loads to build flags 2016-04-18 08:51:10 -04:00