[PATCH] D44850: [PPC64LE] write plt stubs for V2 abi.

Sean Fertile via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 23 15:36:31 PDT 2018


sfertile created this revision.
sfertile added reviewers: ruiu, syzaara, rdhindsa.
Herald added subscribers: kbarton, arichardson, nemanjai, emaste.

Adds the 'default' version of the plt stub for the V2 abi.

While all the instructions for this are correct, we are getting the wrong offset due to differences between power and the other architectures.  lld puts the relocation for the function address into the .got.plt section,  and the writePlt function gets passed the Offset within this section rather then the offset from the got which is what we would expect. The fix for this will be delivered in a subsequent patch.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D44850

Files:
  ELF/Arch/PPC64.cpp
  test/ELF/Inputs/shared-ppc64le.s
  test/ELF/ppc64le-plt-stub.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44850.139661.patch
Type: text/x-patch
Size: 5363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180323/bf03a617/attachment.bin>


More information about the llvm-commits mailing list