domibel opened a new pull request, #50799:
URL: https://github.com/apache/arrow/pull/50799

   ### Rationale for this change
   On riscv64, Gandiva fails at runtime with:
   `    JIT session error: relocation target ... is out of range of 
R_RISCV_HI20 fixup ...
   `
   ### What changes are included in this PR?
   I set the PIC relocation model on the JIT TargetMachine for RISC-V manually 
to restore pre https://github.com/apache/arrow/pull/49063 behavior. LLJIT 
normally sets Reloc::PIC_ for JITLink targets in prepareForConstruction, but 
#49063 builds the object-cache TargetMachine before that runs, so it gets the 
target-default (Static) model.
   
   ### Are these changes tested?
   Yes, by the existing Gandiva tests, on riscv64 hardware.
   
   ### Are there any user-facing changes?
   No public API changes. Gandiva expression evaluation now works on riscv64.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to