- [R_RISCV_BRANCH] = { apply_r_riscv_branch_rela },
- [R_RISCV_JAL] = { apply_r_riscv_jal_rela },
- [R_RISCV_CALL] = { apply_r_riscv_call_rela },
- [R_RISCV_CALL_PLT] = { apply_r_riscv_call_plt_rela },
- [R_RISCV_GOT_HI20] = { apply_r_riscv_got_hi20_rela },
- [R_RISCV_TLS_GOT_HI20] = { tls_not_supported },
- [R_RISCV_TLS_GD_HI20] = { tls_not_supported },
- [R_RISCV_PCREL_HI20] = { apply_r_riscv_pcrel_hi20_rela },
- [R_RISCV_PCREL_LO12_I] = { apply_r_riscv_pcrel_lo12_i_rela },
- [R_RISCV_PCREL_LO12_S] = { apply_r_riscv_pcrel_lo12_s_rela },
- [R_RISCV_HI20] = { apply_r_riscv_hi20_rela },
- [R_RISCV_LO12_I] = { apply_r_riscv_lo12_i_rela },
- [R_RISCV_LO12_S] = { apply_r_riscv_lo12_s_rela },
- [R_RISCV_TPREL_HI20] = { tls_not_supported },
- [R_RISCV_TPREL_LO12_I] = { tls_not_supported },
- [R_RISCV_TPREL_LO12_S] = { tls_not_supported },
- [R_RISCV_TPREL_ADD] = { tls_not_supported },
- [R_RISCV_ADD8] = { apply_r_riscv_add8_rela, apply_8_bit_accumulation },
- [R_RISCV_ADD16] = { apply_r_riscv_add16_rela,
- apply_16_bit_accumulation },
- [R_RISCV_ADD32] = { apply_r_riscv_add32_rela,
- apply_32_bit_accumulation },
- [R_RISCV_ADD64] = { apply_r_riscv_add64_rela,
- apply_64_bit_accumulation },
- [R_RISCV_SUB8] = { apply_r_riscv_sub8_rela, apply_8_bit_accumulation },
- [R_RISCV_SUB16] = { apply_r_riscv_sub16_rela,
- apply_16_bit_accumulation },
- [R_RISCV_SUB32] = { apply_r_riscv_sub32_rela,
- apply_32_bit_accumulation },
- [R_RISCV_SUB64] = { apply_r_riscv_sub64_rela,
- apply_64_bit_accumulation },
+ [R_RISCV_BRANCH] = { .reloc_handler = apply_r_riscv_branch_rela },
+ [R_RISCV_JAL] = { .reloc_handler = apply_r_riscv_jal_rela },
+ [R_RISCV_CALL] = { .reloc_handler = apply_r_riscv_call_rela },
+ [R_RISCV_CALL_PLT] = { .reloc_handler = apply_r_riscv_call_plt_rela },
+ [R_RISCV_GOT_HI20] = { .reloc_handler = apply_r_riscv_got_hi20_rela },
+ [R_RISCV_TLS_GOT_HI20] = { .reloc_handler = tls_not_supported },
+ [R_RISCV_TLS_GD_HI20] = { .reloc_handler = tls_not_supported },
+ [R_RISCV_PCREL_HI20] = { .reloc_handler = apply_r_riscv_pcrel_hi20_rela },
+ [R_RISCV_PCREL_LO12_I] = { .reloc_handler = apply_r_riscv_pcrel_lo12_i_rela },
+ [R_RISCV_PCREL_LO12_S] = { .reloc_handler = apply_r_riscv_pcrel_lo12_s_rela },
+ [R_RISCV_HI20] = { .reloc_handler = apply_r_riscv_hi20_rela },
+ [R_RISCV_LO12_I] = { .reloc_handler = apply_r_riscv_lo12_i_rela },
+ [R_RISCV_LO12_S] = { .reloc_handler = apply_r_riscv_lo12_s_rela },
+ [R_RISCV_TPREL_HI20] = { .reloc_handler = tls_not_supported },
+ [R_RISCV_TPREL_LO12_I] = { .reloc_handler = tls_not_supported },
+ [R_RISCV_TPREL_LO12_S] = { .reloc_handler = tls_not_supported },
+ [R_RISCV_TPREL_ADD] = { .reloc_handler = tls_not_supported },
+ [R_RISCV_ADD8] = { .reloc_handler = apply_r_riscv_add8_rela,
+ .accumulate_handler = apply_8_bit_accumulation },
+ [R_RISCV_ADD16] = { .reloc_handler = apply_r_riscv_add16_rela,
+ .accumulate_handler = apply_16_bit_accumulation },
+ [R_RISCV_ADD32] = { .reloc_handler = apply_r_riscv_add32_rela,
+ .accumulate_handler = apply_32_bit_accumulation },
+ [R_RISCV_ADD64] = { .reloc_handler = apply_r_riscv_add64_rela,
+ .accumulate_handler = apply_64_bit_accumulation },
+ [R_RISCV_SUB8] = { .reloc_handler = apply_r_riscv_sub8_rela,
+ .accumulate_handler = apply_8_bit_accumulation },
+ [R_RISCV_SUB16] = { .reloc_handler = apply_r_riscv_sub16_rela,
+ .accumulate_handler = apply_16_bit_accumulation },
+ [R_RISCV_SUB32] = { .reloc_handler = apply_r_riscv_sub32_rela,
+ .accumulate_handler = apply_32_bit_accumulation },
+ [R_RISCV_SUB64] = { .reloc_handler = apply_r_riscv_sub64_rela,
+ .accumulate_handler = apply_64_bit_accumulation },