[PATCH] [Mips] Add support for MCJIT for MIPS32r6
daniel.sanders at imgtec.com
Thu Jun 25 07:22:49 PDT 2015
> Also please note that in case of O32 ABI if R_MIPS_HI16 / R_MIPS_LO16 relocations
> reference the _gp_disp symbol they should be calculated using special formulas:
> R_MIPS_HI16: (AHL + GP – P) – (short) (AHL + GP – P)) >> 16
> R_MIPS_LO16: AHL + GP – P + 4
Hmm, that could be tricky. At the moment, I'm not sure the name is available.
> I can add FIXME in this patch, and a fix for this bug can be part of another patch. What are your thoughts?
I agree. It's not something that needs fixing in this patch, it's just something I noticed in passing.
More information about the llvm-commits