forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JITLink][PowerPC] Fix incorrect assertion of addend for R_PPC64_REL24
There is case that R_PPC64_REL24 with non-zero addend. The assertion is incorrectly triggered in such situation. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D158708
- Loading branch information
1 parent
ede3d66
commit 12adabd
Showing
3 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
llvm/test/ExecutionEngine/JITLink/ppc64/ppc64-rel24-non-zero-addend.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
# REQUIRES: asserts | ||
# RUN: yaml2obj %S/Inputs/rel24-non-zero-addend.yaml -o %t.o | ||
# RUN: not --crash llvm-jitlink -noexec %t.o 2>&1 | FileCheck %s | ||
# CHECK: Addend == 0 && "Addend is expected to be 0 for a function call" | ||
# | ||
# RUN: llvm-jitlink -noexec %t.o 2>&1 | ||
# The object is generated from llvm/test/ExecutionEngine/MCJIT/test-global-ctors.ll, | ||
# containing an R_PPC64_REL24 whose addend is not zero. |