[PATCH] D100835: [WIP][LLD][RISCV] Linker Relaxation

Luís Marques via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 05:54:46 PDT 2022


luismarques added a comment.

In D100835#3452066 <https://reviews.llvm.org/D100835#3452066>, @luismarques wrote:

> - I found a linking failure issue with this patch. I hadn't yet reported that here because I am still in the process of reducing and analyzing the problematic case.

It was a big pain to do the initial steps of the reduction (I had to start with the object files) but, eventually, I managed to do it and from there I reduced it further. Here's a simpler version of the problematic case:

  $ cat test.s
  .global a
  a:
  tail a
  .rept 2008
  .byte 0
  .endr
  
  $ clang --target=riscv64 -c test.s
  $ ld.lld -shared test.o
  ld.lld: error: test.o:(.text+0x0): relocation R_RISCV_RVC_JUMP out of range: 1028 is not in [-1024, 1023]; references a
  >>> defined in test.o


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100835/new/

https://reviews.llvm.org/D100835



More information about the llvm-commits mailing list