[PATCH] D20242: [mips][ias] Fix R_MICROMIPS_GOT16 evaluation and eliminate symbol for R_MICROMIPS_(GOT|HI|LO)16

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Fri May 13 08:58:23 PDT 2016


dsanders created this revision.
dsanders added reviewers: sdardis, vkalintiris.
dsanders added a subscriber: llvm-commits.
dsanders added a dependency: D20214: [mips][ias] EF_MIPS_MICROMIPS should iff microMIPS code was emitted..
Herald added subscribers: sdardis, dsanders.

The failure r269410 worked around turned out to be caused by an incorrect
evaluation of R_MICROMIPS_GOT16 which then caused the GOT entries to be
incorrect.

This patch fixes the evaluation and reverts r269410.

Depends on D20214 for a fix to '.set micromips'.

http://reviews.llvm.org/D20242

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
  lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
  test/MC/Mips/relocation.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20242.57205.patch
Type: text/x-patch
Size: 8825 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160513/6b348585/attachment.bin>


More information about the llvm-commits mailing list