[PATCH] ARM: kprobes: Fix build error in test code
Nicolas Pitre
nicolas.pitre at linaro.org
Wed Nov 9 11:17:51 EST 2011
On Wed, 9 Nov 2011, Jon Medhurst (Tixy) wrote:
> On Wed, 2011-10-19 at 10:47 +0100, Jon Medhurst (Tixy) wrote:
> > When compiling kprobes-test-thumb.c an error like below may occur:
> >
> > /tmp/ccKcuJcG.s:19179: Error: offset out of range
> >
> > This is caused by the compiler underestimating the size of the inline
> > assembler instructions containing ".space 0x1000" and failing to spill
> > the literal pool in time to prevent the generation of PC relative load
> > instruction with invalid offsets.
> >
> > The fix implemented by this patch is to replace a single large .space
> > directive by a number of 4 byte .space's. This requires splitting the
> > macros which generate test cases for branch instructions into two forms:
> > one with, and one without support for inserting extra code between
> > branch and target.
> >
> > Signed-off-by: Jon Medhurst <jon.medhurst at linaro.org>
> > ---
>
> Nicolas, I noticed that you put this patch into the Linaro kernel tree,
> can I take that as an Acked-by? ;-)
Sure.
Nicolas
More information about the linux-arm-kernel
mailing list