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

Luís Marques via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 07:51:19 PDT 2022


luismarques added a comment.

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

> 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:

BTW, the issue seems to be that the call is going through the PLT but the relaxation offset check assumes that it's jumping directly to the symbol so it incorrectly concludes that it's within bounds to relax to a compressed jump. (It seems like we could avoid going through the PLT anyway. If so, it would be good to optimize that, as that's a preexisting behavior).


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

https://reviews.llvm.org/D100835



More information about the llvm-commits mailing list