[PATCH] D117066: RuntimeDyldELF: Don't abort on R_AARCH64_NONE relocation
Vladislav Khmelevsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 11 16:43:11 PST 2022
yota9 created this revision.
yota9 added reviewers: lhames, rafaelauler, MaskRay.
Herald added subscribers: hiraditya, kristof.beyls.
yota9 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Do nothing on R_AARCH64_NONE relocation. The relocation is used by BOLT when re-linking the final binary.
https://reviews.llvm.org/D117066
Files:
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
Index: llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
===================================================================
--- llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -422,6 +422,8 @@
default:
report_fatal_error("Relocation type not implemented yet!");
break;
+ case ELF::R_AARCH64_NONE:
+ break;
case ELF::R_AARCH64_ABS16: {
uint64_t Result = Value + Addend;
assert(static_cast<int64_t>(Result) >= INT16_MIN && Result < UINT16_MAX);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117066.399123.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220112/ccf40bb2/attachment.bin>
More information about the llvm-commits
mailing list