]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: support R_PARISC_SECREL32 relocation in modules
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 14 Mar 2017 15:47:29 +0000 (11:47 -0400)
committerHelge Deller <deller@gmx.de>
Wed, 15 Mar 2017 19:55:30 +0000 (20:55 +0100)
commit85590938e9e8ac7f00500e7a52c6b104cbb73f36
tree049f36f71b491a29a24f409ceebb634e93408971
parent679dd3dd8898fdda45e25a3b22a3b74aa469d44c
parisc: support R_PARISC_SECREL32 relocation in modules

The parisc kernel doesn't work with CONFIG_MODVERSIONS since the commit
5a2a7bbe2f7dcee8a82963e7fb763e041a786788. It can't load modules with the
error: "module unix: Unknown relocation: 41".

The commit changes __kcrctab from 64-bit valus to 32-bit values. The
assembler generates R_PARISC_SECREL32 secrel relocation for them and the
module loader doesn't support this relocation.

This patch adds the R_PARISC_SECREL32 relocation to the module loader.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org # v4.10+
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/module.c