commit | e687be4296e941df738ff7dd4affc6f276838cef | [log] [tgz] |
---|---|---|
author | Fangrui Song <maskray@google.com> | Tue Jun 11 13:39:08 2019 +0000 |
committer | Fangrui Song <maskray@google.com> | Tue Jun 11 13:39:08 2019 +0000 |
tree | 5a3bb41e6c43a47a10e3fa1bd8f0f7d1c00f2bba | |
parent | 366d873a4abed7e1617de59ce9394cd2825b2b5c [diff] |
[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 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@363064 91177308-0d34-0410-b5e6-96231b3b80d8
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f.