[PATCH] D147693: [JITLink][RISCV] ADD/SUB relocs: read value from working memory

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 10:28:01 PDT 2023


lhames accepted this revision.
lhames added a comment.
This revision is now accepted and ready to land.

@jobnoorman Nice catch!

You can test this by adding `-slab-allocate=1Mb -slab-address=0x1000 -slab-page-size=0x1000` to the `RUN: llvm-jitlink` lines in the existing `llvm/test/ExecutionEngine/JITLink/RISCV/riscv_reloc_add.s` test. This will force the JIT'd code to be laid out as-if allocated at 0x1000, which will trigger the bug.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147693



More information about the llvm-commits mailing list