]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/relocate fix relocate processing in LE mode
authorLaurent Dufour <ldufour@linux.vnet.ibm.com>
Thu, 30 Jan 2014 15:58:42 +0000 (16:58 +0100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 11 Feb 2014 00:24:48 +0000 (11:24 +1100)
commit49d1b33e4635b57b4d9086e67ddf77b6c8778bc5
treecd5f626faace01a1a270090e766d9bc3ae4d7812
parentd72db3fa5709b64c5764cc1ea6843669aee0f61e
powerpc/relocate fix relocate processing in LE mode

Relocation's code is not working in little endian mode because the r_info
field, which is a 64 bits value, should be read from the right offset.

The current code is optimized to read the r_info field as a 32 bits value
starting at the middle of the double word (offset 12). When running in LE
mode, the read value is not correct since only the MSB is read.

This patch removes this optimization which consist to deal with a 32 bits
value instead of a 64 bits one. This way it works in big and little endian
mode.

Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/reloc_64.S