[PATCH] D70570: [PowerPC] Only use PLT annotations if using PIC relocation model

Justin Hibbits via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 13:15:11 PST 2019


jhibbits added a comment.

In D70570#1778165 <https://reviews.llvm.org/D70570#1778165>, @sfertile wrote:

> @MaskRay , @jhibbits Thank you for providing the correct ABI doc, and for the answers.  I'll start going through it.
>
> In D70570#1777864 <https://reviews.llvm.org/D70570#1777864>, @jhibbits wrote:
>
> > - It is an error to not use a PLTREL relocation for a call that needs to be indirected through the PLT.  The linker will complain to recompile with -fPIC.
>
>
> Means you can't link static execs against shared objects anymore. Is this the intent? Or am I missing something obvious?


My phrasing wasn't quite right, I guess.
The linker will create the PLT stubs by nature of it being an external shared object, or something to that effect.  What I really meant was that it's an error to need a PLT and not have it (linker will warn or error if you try to create a .so and use anything other than PLTREL relocations).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70570/new/

https://reviews.llvm.org/D70570





More information about the llvm-commits mailing list