MIPS: tlbex: Deal with re-definition of label
authorRalf Baechle <ralf@linux-mips.org>
Sat, 13 Oct 2012 20:46:26 +0000 (22:46 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 16 Oct 2012 20:21:27 +0000 (22:21 +0200)
commit02a5417751c31cd64197652c000a5ab0d3261465
tree8f0ad16efad10d42ed45016baf517583d928e4e2
parent5210edcd527773c227465ad18e416a894966324f
MIPS: tlbex: Deal with re-definition of label

The microassembler used in tlbex.c does not notice if a label is redefined
resulting in relocations against such labels silently missrelocated.
The issues exists since commit add6eb04776db4189ea89f596cbcde31b899be9d
[Synthesize TLB exception handlers at runtime.] in 2.6.10 and went unnoticed
for so long because the relocations for the affected branches got computed
to do something *almost* sensible.

The issue affects R4000, R4400, QED/IDT RM5230, RM5231, RM5260, RM5261,
RM5270 and RM5271 processors.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlbex.c