diff options
| author | Sam Elliott <quic_aelliott@quicinc.com> | 2024-10-08 13:45:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-08 12:45:01 +0100 |
| commit | db1a76206902e6926464e30cc47249e217405dab (patch) | |
| tree | 84d5671890a2d08521aa3276b99d371d2f552ee3 /lldb/test/API/python_api | |
| parent | f01364ebc88d875fbfc0e00413538465aaa8a2b3 (diff) | |
[LLD][RISCV] Error on PCREL_LO referencing other Section (#107558)
The RISC-V psABI states that "The `R_RISCV_PCREL_LO12_I` or
`R_RISCV_PCREL_LO12_S` relocations contain a label pointing to an
instruction in the same section with an `R_RISCV_PCREL_HI20` relocation
entry that points to the target symbol."
Without this patch, GNU ld errors, but LLD does not -- I think because LLD is
doing the right thing, certainly in the testcase provided.
Nonetheless, I think an error is good here to bring LLD in line with
what GNU ld is doing in showing that the object the user provided is not
following the psABI as written.
Fixes #107304
Diffstat (limited to 'lldb/test/API/python_api')
0 files changed, 0 insertions, 0 deletions
