summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTim Northover <Tim.Northover@arm.com>2013-02-11 11:16:02 +0000
committerTim Northover <Tim.Northover@arm.com>2013-02-11 11:16:02 +0000
commitb05dc5546062f29bf08837db8f680879aa1c14cf (patch)
tree0702819f445b654d2657f5396fc6e48723dc9d31 /test
parentc37aa995e3e55c1bdb17a73c3160edf0426b1a1a (diff)
downloadllvm-b05dc5546062f29bf08837db8f680879aa1c14cf.tar.gz
llvm-b05dc5546062f29bf08837db8f680879aa1c14cf.tar.bz2
llvm-b05dc5546062f29bf08837db8f680879aa1c14cf.tar.xz
AArch64: Add basic relocation processing for llvm-dwarfdump.
This allows llvm-dwarfdump to handle the relocations needed, at least for LLVM-produced code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/DebugInfo/Inputs/dwarfdump-test.elf-aarch64bin0 -> 3360 bytes
-rw-r--r--test/DebugInfo/dwarfdump-aarch64.test16
2 files changed, 16 insertions, 0 deletions
diff --git a/test/DebugInfo/Inputs/dwarfdump-test.elf-aarch64 b/test/DebugInfo/Inputs/dwarfdump-test.elf-aarch64
new file mode 100644
index 0000000000..f5079687c9
--- /dev/null
+++ b/test/DebugInfo/Inputs/dwarfdump-test.elf-aarch64
Binary files differ
diff --git a/test/DebugInfo/dwarfdump-aarch64.test b/test/DebugInfo/dwarfdump-aarch64.test
new file mode 100644
index 0000000000..2f7bc47795
--- /dev/null
+++ b/test/DebugInfo/dwarfdump-aarch64.test
@@ -0,0 +1,16 @@
+RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-aarch64 \
+RUN: | FileCheck %s
+
+We're mostly checking that relocations are applied correctly
+here. Currently R_AARCH64_ABS32 is used for references to debug data
+and R_AARCH64_ABS64 is used for program addresses.
+
+A couple of ABS32s, both at 0 and elsewhere, interpreted correctly:
+
+CHECK: DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000000] = "clang version 3.3 ")
+CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000013] = "tmp.c")
+
+A couple of ABS64s similarly:
+
+CHECK: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
+CHECK: DW_AT_high_pc [DW_FORM_addr] (0x000000000000005c)