[0/1] RISC-V: Make R_RISCV_SUB6 conforms to riscv abi standard

Message ID 20221014063520.1428330-1-zengxiao@eswincomputing.com
Headers
Series RISC-V: Make R_RISCV_SUB6 conforms to riscv abi standard |

Message

Xiao Zeng Oct. 14, 2022, 6:35 a.m. UTC
  From: zengxiao <zengxiao@eswincomputing.com>

Hi all RISC-V folks:

When riscv-objdump is used to generate dwarf information, problems are found, like:
DW_CFA_??? (User defined call frame op: 0x3c)

This error is related to that riscv-objdump does not follow the riscv R_RISCV_SUB6 standard. 
Riscv-readelf is correct because it follows the R_RISCV_SUB6 standard.

There are test cases in https://github.com/zeng-xiao/gnu-bug-fix/tree/main/EG-769
that describe the error in detail. 

---
zengxiao (1):
  RISC-V: Make R_RISCV_SUB6 conforms to riscv abi standard

 bfd/elfxx-riscv.c | 7 +++++++
 1 file changed, 7 insertions(+)