diff options
author | 2014-09-30 10:25:10 +0100 | |
---|---|---|
committer | 2014-09-30 16:55:24 +0100 | |
commit | ad684dce87fac52738649e62b4afa25081b52a28 (patch) | |
tree | 42b37e2d471f9cdecc61018217cb4ad771f63149 /arch/arm64/kernel | |
parent | ARM: 8178/1: fix set_tls for !CONFIG_KUSER_HELPERS (diff) | |
download | linux-dev-ad684dce87fac52738649e62b4afa25081b52a28.tar.xz linux-dev-ad684dce87fac52738649e62b4afa25081b52a28.zip |
ARM: 8179/1: kprobes-test: Fix compile error "bad immediate value for offset"
When compiling kprobes-test-arm.c the following error has been observed
/tmp/ccoT403o.s:21439: Error: bad immediate value for offset (4168)
This is caused by the compiler spilling it's literal pool too far away
from the site which is trying to reference it with a PC relative load.
This arises because the compiler is underestimating the size of the
inline assembler code present, which apparently it approximates as 4
bytes per line or instruction.
We fix this problem by moving the operations which generate more than
4 bytes out of the text section. Specifically, moving the .ascii
directives to the .rodata section.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm64/kernel')
0 files changed, 0 insertions, 0 deletions