diff options
author | Fangrui Song <maskray@google.com> | 2019-05-17 14:11:03 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-17 14:11:03 +0000 |
commit | f3a3b93f5453e4e07d449c1ed733c9ac8cfb4b58 (patch) | |
tree | 78a2ea7e00e24f8b7030dd693018325a6a620940 /clang/unittests/Tooling/TransformerTest.cpp | |
parent | 62c7032c1832d50d474f562341a3283c5c6aa521 (diff) | |
download | llvm-f3a3b93f5453e4e07d449c1ed733c9ac8cfb4b58.zip llvm-f3a3b93f5453e4e07d449c1ed733c9ac8cfb4b58.tar.gz llvm-f3a3b93f5453e4e07d449c1ed733c9ac8cfb4b58.tar.bz2 |
[ELF] -r: fix R_*_NONE to section symbols on Elf*_Rel targets
On Elf*_Rel targets, for a relocation to a section symbol, an R_ABS is
added which will be used by relocateOne() to compute the implicit
addend.
Addends of R_*_NONE should be ignored, so don't emit an R_ABS.
This fixes crashes on X86 and ARM because their relocateOne() do not
handle R_*_NONE.
Reviewed By: peter.smith
Differential Revision: https://reviews.llvm.org/D62052
llvm-svn: 361036
Diffstat (limited to 'clang/unittests/Tooling/TransformerTest.cpp')
0 files changed, 0 insertions, 0 deletions