diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2015-12-16 14:45:09 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2015-12-16 14:45:09 +0000 |
| commit | 09dae7c3e7e789ad7bfd317d388bcfbc3a8c7008 (patch) | |
| tree | 8a111fcaa8b616b83ce810d3de35217758ed6960 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 3d21dcf3edf54391749d00638bb8addea342d6e9 (diff) | |
[ELF][MIPS] Handle R_MIPS_HI16/LO16 relocations against _gp_disp symbol
The `_gp_disp` is a magic symbol designates offset between start of
function and gp pointer into GOT. Only `R_MIPS_HI16` and `R_MIPS_LO16`
relocations are permitted with `_gp_disp`. The patch adds the `_gp_disp`
as an ignored symbol and adjusts symbol value before call the `relocateOne`
for `R_MIPS_HI16/LO16` relocations.
Differential Revision: http://reviews.llvm.org/D15480
llvm-svn: 255768
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
