In Secure PLT ABI, -fpic is similar to -fPIC. The difference is that:
- the address of _GLOBAL_OFFSET_TABLE instead of .got2+0x8000 is stored in r30.
- R_PPC_PLTREL24 does not get an addend of 0x8000.
Paths
| Differential D63563
[PPC32] Fix PLT calls for -msecure-plt -fpic ClosedPublic Authored by MaskRay on Jun 19 2019, 9:29 AM.
Details Summary In Secure PLT ABI, -fpic is similar to -fPIC. The difference is that:
Diff Detail
Event TimelineMaskRay retitled this revision from [PPC32] Support -msecure-plt -fpic to [PPC32] Fix PLT calls for -msecure-plt -fpic. Comment ActionsUpdate title This revision is now accepted and ready to land.Jun 23 2019, 7:28 PM Closed by commit rL364324: [PPC32] Support PLT calls for -msecure-plt -fpic (authored by MaskRay). · Explain WhyJun 25 2019, 9:00 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 206463 llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp
llvm/trunk/test/CodeGen/PowerPC/ppc32-pic.ll
llvm/trunk/test/CodeGen/PowerPC/ppc32-secure-plt-tls2.ll
|