[mips] Create LA25 thunks for MIPS R6 code
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 19 Feb 2019 11:11:12 +0000 (11:11 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 19 Feb 2019 11:11:12 +0000 (11:11 +0000)
commita6012a65d47dc6f63fa36b5f04b7d410ff4d612e
tree947bf556622ef42e76bdde28abe9859f0579bfcd
parentfae2a509fa5a103c6d1d87aeaa1c8a4decea2936
[mips] Create LA25 thunks for MIPS R6 code

MIPS R6 code uses the `R_MIPS_PC26_S2` relocation for calls which might
cross boundaries of non-PIC-to-PIC code. We need to create a LA25 thunks
for that case.

llvm-svn: 354312
lld/ELF/Arch/Mips.cpp
lld/test/ELF/mips-npic-call-pic.s