Skip to content

Commit

Permalink
riscv64: handle R_RISCV_SET_ULEB128/R_RISCV_SUB_ULEB128
Browse files Browse the repository at this point in the history
For C++ applications or libraries like gdbserver or gmp
we need to handle these relocations.

Signed-off-by: Waldemar Brodkorb <[email protected]>
  • Loading branch information
wbx-github authored and gregungerer committed Aug 22, 2024
1 parent eead8d5 commit 13dbbb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elf2flt.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,8 @@ output_relocs (
case R_RISCV_SET8:
case R_RISCV_SET16:
case R_RISCV_SET32:
case R_RISCV_SET_ULEB128:
case R_RISCV_SUB_ULEB128:
continue;
case R_RISCV_32:
case R_RISCV_64:
Expand Down

0 comments on commit 13dbbb8

Please sign in to comment.