1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 08:35:19 -05:00
linux/arch/arm/kernel
Ard Biesheuvel 29589ca09a ARM: 9208/1: entry: add .ltorg directive to keep literals in range
LKP reports a build issue on Clang, related to a literal load of
__current issued through the ldr_va macro. This turns out to be due to
the fact that group relocations are disabled when CONFIG_COMPILE_TEST=y,
which means that the ldr_va macro resolves to a pair of LDR
instructions, the first one being a literal load issued too far from its
literal pool.

Due to the introduction of a couple of new uses of this macro in commit
508074607c ("ARM: 9195/1: entry: avoid explicit literal loads"),
the literal pools end up getting rearranged in a way that causes the
literal for __current to go out of range. Let's fix this up by putting a
.ltorg directive in a suitable place in the code.

Link: https://lore.kernel.org/all/202205290805.1vZLAr36-lkp@intel.com/

Fixes: 508074607c ("ARM: 9195/1: entry: avoid explicit literal loads")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
2022-07-14 13:19:51 +01:00
..
.gitignore
arch_timer.c
armksyms.c
asm-offsets.c ARM: implement THREAD_INFO_IN_TASK for uniprocessor systems 2021-12-06 12:49:17 +01:00
atags.h
atags_compat.c
atags_parse.c
atags_proc.c proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
bios32.c
bugs.c
cpuidle.c
crash_dump.c vmcore: convert copy_oldmem_page() to take an iov_iter 2022-04-29 14:37:59 -07:00
debug.S
devtree.c
dma-isa.c
dma.c
early_printk.c
efi.c
elf.c
entry-armv.S ARM: 9201/1: spectre-bhb: rely on linker to emit cross-section literal loads 2022-05-20 12:33:47 +01:00
entry-common.S ARM: 9208/1: entry: add .ltorg directive to keep literals in range 2022-07-14 13:19:51 +01:00
entry-ftrace.S ARM: ftrace: enable the graph tracer with the EABI unwinder 2022-02-09 09:13:59 +01:00
entry-header.S ARM: 9195/1: entry: avoid explicit literal loads 2022-05-20 12:32:32 +01:00
entry-v7m.S ARM: v7m: enable support for IRQ stacks 2021-12-06 12:49:17 +01:00
fiq.c
fiqasm.S
ftrace.c ftrace: Remove return value of ftrace_arch_modify_*() 2022-05-26 21:13:00 -04:00
head-common.S ARM: implement THREAD_INFO_IN_TASK for uniprocessor systems 2021-12-06 12:49:17 +01:00
head-inflate-data.c
head-nommu.S ARM: 9160/1: NOMMU: Reload __secondary_data after PROCINFO_INITFUNC 2021-12-17 12:02:16 +00:00
head.S ARM: mm: switch to swapper_pg_dir early for vmap'ed stack 2022-01-24 20:37:55 +01:00
hibernate.c
hw_breakpoint.c ARM: 9206/1: A9: Add ARM ERRATA 764319 workaround (Updated) 2022-05-20 12:33:48 +01:00
hyp-stub.S
insn.c
io.c
irq.c ARM: remove old-style irq entry 2021-12-06 12:49:11 +01:00
isa.c
iwmmxt.h
iwmmxt.S
jump_label.c
kgdb.c ARM: Fix kgdb breakpoint for Thumb2 2022-02-21 14:56:53 +00:00
machine_kexec.c
Makefile ARM development updates for 5.18: 2022-03-23 17:35:57 -07:00
module-plts.c
module.c ARM: 9204/2: module: Add all unwind tables when load module 2022-05-20 12:34:55 +01:00
opcodes.c
paravirt.c
patch.c
perf_callchain.c
perf_event_v6.c
perf_event_v7.c
perf_event_xscale.c
perf_regs.c
phys2virt.S
pj4-cp0.c
process.c fork: Generalize PF_IO_WORKER handling 2022-05-07 09:01:59 -05:00
psci_smp.c
ptrace.c ptrace: Create ptrace_report_syscall_{entry,exit} in ptrace.h 2022-03-10 13:35:08 -06:00
reboot.c ARM: Use do_kernel_power_off() 2022-05-19 19:30:30 +02:00
reboot.h
relocate_kernel.S
return_address.c ARM: unwind: set frame.pc correctly for current-thread unwinding 2022-03-11 10:55:28 +00:00
setup.c ARM fixes for 5.18-rc1: 2022-04-03 10:17:48 -07:00
signal.c signal: Deliver SIGTRAP on perf event asynchronously if blocked 2022-04-22 12:14:05 +02:00
signal.h
sigreturn_codes.S
sleep.S ARM: mm: switch to swapper_pg_dir early for vmap'ed stack 2022-01-24 20:37:55 +01:00
smccc-call.S
smp.c ARM development updates for 5.18: 2022-03-23 17:35:57 -07:00
smp_scu.c
smp_tlb.c
smp_twd.c
spectre.c ARM: fix build error when BPF_SYSCALL is disabled 2022-03-08 12:53:05 -08:00
stacktrace.c ARM fixes for 5.18-rc1: 2022-04-03 10:17:48 -07:00
suspend.c
swp_emulate.c uaccess: fix type mismatch warnings from access_ok() 2022-02-25 09:36:05 +01:00
sys_arm.c
sys_oabi-compat.c
tcm.c
thumbee.c
time.c
topology.c
traps.c asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
unwind.c ARM: unwind: only permit stack switch when unwinding call_with_stack() 2022-03-11 13:01:00 +00:00
v7m.c
vdso.c
vmlinux-xip.lds.S
vmlinux.lds.S ARM: implement support for vmap'ed stacks 2021-12-03 15:11:33 +01:00
xscale-cp0.c