]> 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)
commite0e61cd9f5adedf0475d217427917d22b35787e1
treecd5f626faace01a1a270090e766d9bc3ae4d7812
parentb2e2d7fb7d65abf512f17d9aad18b81e5bf84125
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