Skip to content

Commit b1f44e1

Browse files
committed
sparc32: Be less strict in matching %lo part of relocation.
The "(insn & 0x01800000) != 0x01800000" test matches 'restore' but that is a legitimate place to see the %lo() part of a 32-bit symbol relocation, particularly in tail calls. Signed-off-by: David S. Miller <davem@davemloft.net> Tested-by: Sergei Trofimovich <slyfox@gentoo.org>
1 parent dbf2b92 commit b1f44e1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/sparc/mm/btfixup.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ void __init btfixup(void)
302302
case 'i': /* INT */
303303
if ((insn & 0xc1c00000) == 0x01000000) /* %HI */
304304
set_addr(addr, q[1], fmangled, (insn & 0xffc00000) | (p[1] >> 10));
305-
else if ((insn & 0x80002000) == 0x80002000 &&
306-
(insn & 0x01800000) != 0x01800000) /* %LO */
305+
else if ((insn & 0x80002000) == 0x80002000) /* %LO */
307306
set_addr(addr, q[1], fmangled, (insn & 0xffffe000) | (p[1] & 0x3ff));
308307
else {
309308
prom_printf(insn_i, p, addr, insn);

0 commit comments

Comments
 (0)