openrisc: Define openrisc relocation types
authorStafford Horne <shorne@gmail.com>
Thu, 11 Apr 2024 16:03:18 +0000 (17:03 +0100)
committerStafford Horne <shorne@gmail.com>
Mon, 15 Apr 2024 14:20:39 +0000 (15:20 +0100)
commit26f53f23957f996daa7328f96263011c09cf8552
tree62132e7f50f8465e2386b0821bcc3590a87eb16c
parentc94195a34e09dacfe2feef03602c911e82f49994
openrisc: Define openrisc relocation types

This defines the current OpenRISC relocation types using the current
R_OR1K_* naming conventions.

The old R_OR32_* definitions are left for backwards compatibility.
Note, the R_OR32_VTENTRY and R_OR32_VTINHERIT macros were defined with
the wrong values the have always been 7 and 8 respectively, not 8 and 7.
They are not used for module loading and I have updated them to use the
correct values.

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