[llvm-dev] [JITLink] How to allocate correct target memory in small code model
陆旭凡 via llvm-dev
llvm-dev at lists.llvm.org
Thu Jul 22 00:43:16 PDT 2021
Hi All,
In RISCV64, if the compiler compile with small code model (mcmodel=medlow)(
https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md#code-models),
the symbol address need to at the lower 2GiB of the RISCV64 address space.
However, when the jitlink allocate target memory, it will allocate to a
address out of range of the lower 2GiB of the RISCV64 address space. How
can I solve this problem ?
Regards,
Stephen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210722/f185cff3/attachment.html>
More information about the llvm-dev
mailing list