aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2023-04-13 10:39:47 -0700
committerCraig Topper <craig.topper@sifive.com>2023-04-13 10:52:15 -0700
commit85444794cdde8211b916767cc51a37547dbd17e9 (patch)
treea64ff5dc1e7dfb59873ca9fdea9207c8ccf8f3ea /lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
parentb60513e384bf0253464d2ff9070f10b488e3701a (diff)
downloadllvm-85444794cdde8211b916767cc51a37547dbd17e9.zip
llvm-85444794cdde8211b916767cc51a37547dbd17e9.tar.gz
llvm-85444794cdde8211b916767cc51a37547dbd17e9.tar.bz2
[lld][RISCV] Implement GP relaxation for R_RISCV_HI20/R_RISCV_LO12_I/R_RISCV_LO12_S.
This implements support for relaxing these relocations to use the GP register to compute addresses of globals in the .sdata and .sbss sections. This feature is off by default and must be enabled by passing --relax-gp to the linker. The GP register might not always be the "global pointer". It can be used for other purposes. See discussion here https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/371 Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D143673
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp')
0 files changed, 0 insertions, 0 deletions