[PATCH] [Mips] Add support for MCJIT for MIPS32r6

Vladimir Radosavljevic vladimir.radosavljevic at rt-rk.com
Thu Jun 25 08:10:24 PDT 2015


In http://reviews.llvm.org/D10687#194576, @dsanders wrote:

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


There is no support for resolving PIC relocations for O32, so this won't be the case.


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10687

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list