[PATCH] D51613: [Sparc] Add fixups for the GOTdata_op model

Daniel Cederman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 4 02:09:06 PDT 2018


dcederman created this revision.
dcederman added reviewers: jyknight, venkatra.
Herald added subscribers: llvm-commits, jrtc27, fedor.sergeev.

This makes it possible to assemble position independent code using the GOTdata_op model. It gives the linker the possibility to change a load into an add when the location of the symbol is less than 2 GB away.


Repository:
  rL LLVM

https://reviews.llvm.org/D51613

Files:
  lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
  lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
  lib/Target/Sparc/MCTargetDesc/SparcFixupKinds.h
  lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp
  lib/Target/Sparc/MCTargetDesc/SparcMCExpr.h
  test/MC/Sparc/sparc-pic.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51613.163763.patch
Type: text/x-patch
Size: 5917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180904/86731fbb/attachment.bin>


More information about the llvm-commits mailing list