[PATCH] [mips][ias] Expand on r238751 to cover as many relocs as possible.

Daniel Sanders daniel.sanders at imgtec.com
Tue Jun 2 06:39:21 PDT 2015


Hi vkalintiris,

Relocs that can be converted from absolute to PC-relative now do so if IsPCRel
is true. Relocs that require PC-relative now call llvm_unreachable() if IsPCRel
is false and similarly those that require absolute assert that IsPCRel is false.

Note that while it looks like some relocs (e.g. R_MIPS_26) can be converted into
the MIPS32r6/MIPS64r6 relocs (R_MIPS_PC*_S2), it isn't actually valid to do so.

Placeholders have been left in the testcase for unsupported relocs and relocs
that cannot be generated at the moment.

http://reviews.llvm.org/D10184

Files:
  lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
  test/MC/Mips/mips-relocations.s
  test/MC/Mips/relocation.s

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10184.26968.patch
Type: text/x-patch
Size: 21776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150602/6b4a12f4/attachment.bin>


More information about the llvm-commits mailing list