[PATCH] Correct re-applying relocations on MIPS platforms

Petar Jovanovic Petar.Jovanovic at imgtec.com
Mon Jul 22 17:30:55 PDT 2013


Hello everyone,

here is a patch that corrects how multiple relocations are applied on MIPS.

Similar to ARM change r182800, dynamic linker will reads bits/addends from
the original object rather than from the object that might have been patched
previously. For the purpose of relocations for MCJIT stubs on MIPS, we
internally use otherwise unused MIPS relocations.

The change also enables MCJIT unit tests for MIPS (EL/BE), and the following
two tests now pass:

- MCJITTest.return_global and
- MCJITTest.multiple_functions.

Regards,
Petar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MCJIT-16250.diff
Type: application/octet-stream
Size: 5443 bytes
Desc: MCJIT-16250.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130723/7c36a377/attachment.obj>


More information about the llvm-commits mailing list