diff options
| author | Fangrui Song <maskray@google.com> | 2019-06-25 15:56:32 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-06-25 15:56:32 +0000 |
| commit | 96a192ea53717428b7a96673d00d2d68e8542dfb (patch) | |
| tree | 9cb4700772e8a73e40870be611c36d2581a2cdeb /llvm/lib/Support/BinaryStreamReader.cpp | |
| parent | bcf0eb7a6409b083532c020faa85ef219efbfbab (diff) | |
| download | bcm5719-llvm-96a192ea53717428b7a96673d00d2d68e8542dfb.tar.gz bcm5719-llvm-96a192ea53717428b7a96673d00d2d68e8542dfb.zip | |
[PPC32] Support PLT calls for -msecure-plt -fpic
Summary:
In Secure PLT ABI, -fpic is similar to -fPIC. The differences are that:
* -fpic stores the address of _GLOBAL_OFFSET_TABLE_ in r30, while -fPIC stores .got2+0x8000.
* -fpic uses an addend of 0 for R_PPC_PLTREL24, while -fPIC uses 0x8000.
Reviewers: hfinkel, jhibbits, joerg, nemanjai, spetrovic
Reviewed By: jhibbits
Subscribers: adalava, kbarton, jsji, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D63563
llvm-svn: 364324
Diffstat (limited to 'llvm/lib/Support/BinaryStreamReader.cpp')
0 files changed, 0 insertions, 0 deletions

