linux/arch
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
..
alpha alpha: kernel: osf_sys: Set 'kts.tv_nsec' only when 'tv' has effect 2015-05-26 10:01:51 -07:00
arc ARC: Make ARC bitops "safer" (add anti-optimization) 2015-08-10 12:21:57 -07:00
arm ARM: dts: armada-375: use armada-370-sata for SATA 2016-04-18 08:50:36 -04:00
arm64 arm64: errata: Add -mpc-relative-literal-loads to build flags 2016-04-18 08:51:10 -04:00
avr32 mmc: atmel-mci: restore dma on AVR32 2016-04-18 08:51:01 -04:00
blackfin blackfin: Fix build error 2015-06-10 10:19:24 -07:00
c6x C6X Fixes for v4.1 2015-04-16 18:48:55 -04:00
cris CRIS changes for 4.1 2015-04-26 13:31:05 -07:00
frv Devicetree updates for 4.1: 2015-04-24 08:46:18 -07:00
hexagon Merge branch 'exec_domain_rip_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/misc 2015-04-15 13:53:55 -07:00
ia64 ia64: make cpu_callin_map non-volatile. 2015-06-02 10:07:03 -07:00
m32r m32r: fix m32104ut_defconfig build fail 2016-02-03 16:23:16 -05:00
m68k m68k: Define asmlinkage_protect 2015-10-22 14:43:25 -07:00
metag Metag architecture changes for v4.1 2015-04-24 07:56:50 -07:00
microblaze microblaze: use asm-generic for seccomp.h 2015-04-17 09:04:10 -04:00
mips MIPS: smp.c: Fix uninitialised temp_foreign_map 2016-04-13 17:14:28 -04:00
mn10300 mn10300: Select CONFIG_HAVE_UID16 to fix build failure 2016-01-31 11:23:40 -08:00
nios2 nios2 update for v4.1-rc1 2015-04-24 07:59:07 -07:00
openrisc openrisc: fix CONFIG_UID16 setting 2015-08-03 09:28:58 -07:00
parisc parisc: Fix ptrace syscall number and return value modification 2016-03-09 13:15:23 -05:00
powerpc powerpc: Fix dedotify for binutils >= 2.26 2016-04-13 17:14:28 -04:00
s390 s390/pci: enforce fmb page boundary rule 2016-04-18 08:50:57 -04:00
score score: Fix exception handler label 2015-06-10 10:19:47 -07:00
sh lib/decompressors: use real out buf size for gunzip with kernel 2015-09-29 19:26:19 +02:00
sparc sparc64: fix incorrect sign extension in sys_sparc64_personality 2016-02-03 16:23:15 -05:00
tile signal: fix information leak in copy_siginfo_from_user32 2015-08-16 20:52:26 -07:00
um fs/coredump: prevent fsuid=0 dumps into user-controlled directories 2016-04-18 08:51:07 -04:00
unicore32 lib/decompressors: use real out buf size for gunzip with kernel 2015-09-29 19:26:19 +02:00
x86 KVM: VMX: avoid guest hang on invalid invept instruction 2016-04-18 08:51:06 -04:00
xtensa xtensa: clear all DBREAKC registers on start 2016-04-18 08:50:55 -04:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00
Kconfig powerpc updates for 4.1 2015-04-16 13:53:32 -05:00