[PATCH] D14950: [ELF2][MIPS] Support R_MIPS_CALL16 relocation

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 24 05:57:28 PST 2015


atanasyan created this revision.
atanasyan added reviewers: ruiu, rafael.
atanasyan added a subscriber: llvm-commits.
atanasyan set the repository for this revision to rL LLVM.
atanasyan added a project: lld.

R_MIPS_CALL16 relocation provides the same result as R_MIPS_GOT16 relocation but does not need to check the result on overflow and should reject local symbol as a target.

The patch adds new argument to the `relocateOne` method. It is a pointer to `SymbolBody`. In case of local symbol it is `nullptr`.

Repository:
  rL LLVM

http://reviews.llvm.org/D14950

Files:
  ELF/InputSection.cpp
  ELF/Target.cpp
  ELF/Target.h
  test/ELF/mips-call16-local.s
  test/ELF/mips-call16.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14950.41035.patch
Type: text/x-patch
Size: 12901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151124/538c69a4/attachment.bin>


More information about the llvm-commits mailing list