[Mips] Handle R_MIPS_JALR relocation to omptimize jalr/jr instructions
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 21 Jul 2015 05:54:22 +0000 (05:54 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 21 Jul 2015 05:54:22 +0000 (05:54 +0000)
commitf9db71eaec623d4e50f0efe6dc327388f70d8de3
treefa7fe76cad917dd08da98bd31aef9acbea9d78d0
parent61459cef40cd99fa9fcef7b986eb72b63635e4de
[Mips] Handle R_MIPS_JALR relocation to omptimize jalr/jr instructions

llvm-svn: 242759
lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
lld/test/elf/Mips/jalx-jalr.test [new file with mode: 0644]
lld/test/elf/Mips/rel-jalr-01.test [new file with mode: 0644]
lld/test/elf/Mips/rel-jalr-02.test [new file with mode: 0644]