[Mips] Fix incorrect handling of cross mode jumps
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 9 Mar 2015 10:53:15 +0000 (10:53 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 9 Mar 2015 10:53:15 +0000 (10:53 +0000)
commit9af798f5e46a45178af33175800312393770a1d9
tree071e7d9d174da045c9f132c517a213ade78282d0
parent8fa23b8ebf352daa61ae44fe596dd1ab36b8ca58
[Mips] Fix incorrect handling of cross mode jumps

We should not take in account a type of "source" symbol. Cross mode jump
adjustment is requred when target symbol and relocation belong to
different (regular/microMIPS) instruction sets.

llvm-svn: 231639
lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
lld/test/elf/Mips/la25-stub-micro.test
lld/test/elf/Mips/r26-1-micro.test