riscv: Add remaining module relocations

Add all final module relocations and add error logs explaining the ones
that are not supported. Implement overflow checks for
ADD/SUB/SET/ULEB128 relocations.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Link: https://lore.kernel.org/r/20231101-module_relocations-v9-2-8dfa3483c400@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
Charlie Jenkins 2023-11-01 11:33:00 -07:00 • committed by Palmer Dabbelt
commit 8fd6c51423
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
2 changed files with 423 additions and 30 deletions