openrisc: Add support for more module relocations
authorStafford Horne <shorne@gmail.com>
Thu, 11 Apr 2024 16:23:25 +0000 (17:23 +0100)
committerStafford Horne <shorne@gmail.com>
Mon, 15 Apr 2024 14:20:39 +0000 (15:20 +0100)
commit23c6e901c7112295d5ff0e1d90fed7be102433b9
treede9d5ac666bed8a13ca48606f33a7e4fbd59d759
parent26f53f23957f996daa7328f96263011c09cf8552
openrisc: Add support for more module relocations

When testing modules in OpenRISC I found R_OR1K_AHI16 (signed adjusted
high 16-bit) and R_OR1K_SLO16 (split low 16-bit) relocations are used in
modules but not implemented yet.

This patch implements the relocations. I have tested with a few modules.

Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/module.c