forked from llvm-mirror/llvm
-
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.
[llvm-objdump] Properly print MachO aarch64 addend relocations
Previously such relocations fell into the last case for local symbols, using the relocation addend as symbol index, leading to a crash. Differential Revision: https://reviews.llvm.org/D35239 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307927 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
Binary file added
BIN
+424 Bytes
test/tools/llvm-objdump/AArch64/Inputs/reloc-addend.obj.macho-aarch64
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
RUN: llvm-objdump -r %p/Inputs/reloc-addend.obj.macho-aarch64 | FileCheck %s | ||
|
||
CHECK-DAG: 0000000000000004 ARM64_RELOC_ADDEND 0x999 | ||
CHECK-DAG: 0000000000000004 ARM64_RELOC_PAGEOFF12 _stringbuf | ||
CHECK-DAG: 0000000000000000 ARM64_RELOC_ADDEND 0x999 | ||
CHECK-DAG: 0000000000000000 ARM64_RELOC_PAGE21 _stringbuf |
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