[PATCH] D15480: [ELF][MIPS] Handle R_MIPS_HI16/LO16 relocations against _gp_disp symbol

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 24 03:04:04 PST 2015


grimar added a subscriber: grimar.

================
Comment at: lld/trunk/ELF/InputSection.cpp:213
@@ -208,2 +212,3 @@
+        SymVA = getMipsGpAddr<ELFT>() - AddrLoc + 4;
     }
     uintX_t A = getAddend<ELFT>(RI);
----------------
I thinking about that place last time.
May be we should add A argument to Target->relocateOne()  ?
That can help to move that calculation to mips target, since it looks like absence of A inside relocateOne() is the only stoppable for doing that.


Repository:
  rL LLVM

http://reviews.llvm.org/D15480





More information about the llvm-commits mailing list