[PATCH] D20664: [ELF][MIPS] Always resolve MIPS GP-relative relocations to 'local' definitions

Rafael Ávila de Espíndola via llvm-commits llvm-commits at lists.llvm.org
Fri May 27 14:49:36 PDT 2016


rafael added a comment.

This LGTM, but we should make sure that llvm instead produces something like

  .global foo

foo:
.Lbar:

  lui     $gp,%hi(%neg(%gp_rel(.Lbar)))
  daddu   $gp,$gp,$t9
  daddiu  $gp,$gp,%lo(%neg(%gp_rel(.Lbar))

so that we can on day remove this special case.


Repository:
  rL LLVM

http://reviews.llvm.org/D20664





More information about the llvm-commits mailing list