[PATCH] D45972: [ELF][MIPS] Fix calculation of GP relative relocations in case of relocatable output

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 25 03:54:41 PDT 2018


atanasyan added a comment.

In https://reviews.llvm.org/D45972#1077893, @grimar wrote:

> It seems you can produce .o files you have added (mips-micro-gp0-non-zero.o, mips-n64-gp0-non-zero.o) with use of llvm-mc, right?


LLD and llvm-mc both generate relocatable object files with zero GP0 value. Non-zero value appears in EXE / DSO only. That's why I have to generate the input object files using GNU as and ld.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D45972





More information about the llvm-commits mailing list