[PATCH] D37335: [MIPS] Initial support of microMIPS code linking

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 31 07:37:07 PDT 2017


atanasyan created this revision.
atanasyan added a project: lld.
Herald added subscribers: arichardson, sdardis, emaste.

The patch implements initial support of microMIPS code linking:

- Handle microMIPS specific relocations.
- Emit both https://reviews.llvm.org/diffusion/L/-R5 and R6 microMIPS PLT records.

For now linking mixed set of regular and microMIPS object files is not supported. Also the patch does not handle (setup and clear) the least-significant bit of an address which is utilized as the ISA mode bit and allows to make jump between regular and microMIPS code without any thunks.


Repository:
  rL LLVM

https://reviews.llvm.org/D37335

Files:
  ELF/Arch/Mips.cpp
  ELF/InputSection.cpp
  ELF/Relocations.cpp
  test/ELF/Inputs/mips-micro.s
  test/ELF/mips-micro-got.s
  test/ELF/mips-micro-got64.s
  test/ELF/mips-micro-jal.s
  test/ELF/mips-micro-relocs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37335.113403.patch
Type: text/x-patch
Size: 27675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170831/5f51e67b/attachment.bin>


More information about the llvm-commits mailing list