]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: ftrace: Fix a microMIPS build problem
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 20 Oct 2014 08:39:31 +0000 (09:39 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 24 Oct 2014 00:38:33 +0000 (02:38 +0200)
commit64d2649e9f9d528400f3c17088e23e5b534b6cfc
tree68280968fbf552e2c67a2d9ba1b7cf91d0a67659
parenta7ad4d8874f1e49cf88556cfcb002fe8c7419adc
MIPS: ftrace: Fix a microMIPS build problem

Code before the .fixup section needs to have the .insn directive.
This has no side effects on MIPS32/64 but it affects the way microMIPS
loads the address for the return label.

Fixes the following build problem:
mips-linux-gnu-ld: arch/mips/built-in.o: .fixup+0x4a0: Unsupported jump between
ISA modes; consider recompiling with interlinking enabled.
mips-linux-gnu-ld: final link failed: Bad value
Makefile:819: recipe for target 'vmlinux' failed

The fix is similar to 44a3a762e30bf2e4 ("MIPS: microMIPS:
Disable LL/SC and fix linker bug.")

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: stable@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8117/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/ftrace.h