diff options
author | Job Noorman <jnoorman@igalia.com> | 2023-10-05 08:53:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-05 08:53:51 +0000 |
commit | c7d6d62252e356be096462fc8b416bd6f725afbd (patch) | |
tree | 364397024ee4e228a510c07be1dbf8c4294591e6 /clang/unittests/Basic/SourceManagerTest.cpp | |
parent | 7c5e4e5fa3a948fc662be3a6bf057021d32f72e6 (diff) | |
download | llvm-c7d6d62252e356be096462fc8b416bd6f725afbd.zip llvm-c7d6d62252e356be096462fc8b416bd6f725afbd.tar.gz llvm-c7d6d62252e356be096462fc8b416bd6f725afbd.tar.bz2 |
[BOLT][RISCV] Implement TLS le/ie relocations (#67112)
Handle the following relocations related to TLS local-exec and
initial-exec:
- R_RISCV_TLS_GOT_HI20
- R_RISCV_TPREL_HI20
- R_RISCV_TPREL_ADD
- R_RISCV_TPREL_LO12_I
- R_RISCV_TPREL_LO12_S
In addition, GNU ld has a quirk where after TLS le relaxation, two
unofficial relocation types may be emitted:
- R_RISCV_TPREL_I
- R_RISCV_TPREL_S
Since they are unofficial (defined in the reserved range of relocation
types), LLVM does not define them. Hence, I've defined them locally in
BOLT in a private namespace.
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions