diff options
author | Fangrui Song <maskray@google.com> | 2019-06-11 13:39:08 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-06-11 13:39:08 +0000 |
commit | 47d77365aa7148bc7d7b2883cb93ed14bd88999d (patch) | |
tree | c11d5423fe38146bcb9c5fe99e0d56de7f5c1644 /llvm/docs/CommandGuide/llvm-nm.rst | |
parent | b37ccc5fece1b08b0c1dacdd78ae6d7740fd5347 (diff) | |
download | bcm5719-llvm-47d77365aa7148bc7d7b2883cb93ed14bd88999d.tar.gz bcm5719-llvm-47d77365aa7148bc7d7b2883cb93ed14bd88999d.zip |
[ELF][RISCV] Add R_RISCV_PC_INDIRECT to isRelExpr()
So that R_RISCV_PCREL_LO12_[IS] are considered as link-time constants in
-pie mode, otherwise there are bogus errors:
ld.lld: error: can't create dynamic relocation R_RISCV_PCREL_LO12_I against symbol: .L0 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D63123
llvm-svn: 363064
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-nm.rst')
0 files changed, 0 insertions, 0 deletions