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

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 25 03:59:26 PDT 2018


grimar added a comment.

In https://reviews.llvm.org/D45972#1077898, @atanasyan wrote:

> 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.


I see. Please add this information to the test case then (including GNU as version you use and invocation line for each object).


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D45972





More information about the llvm-commits mailing list