diff options
author | Tim Northover <Tim.Northover@arm.com> | 2013-02-11 11:16:02 +0000 |
---|---|---|
committer | Tim Northover <Tim.Northover@arm.com> | 2013-02-11 11:16:02 +0000 |
commit | b05dc5546062f29bf08837db8f680879aa1c14cf (patch) | |
tree | 0702819f445b654d2657f5396fc6e48723dc9d31 /test | |
parent | c37aa995e3e55c1bdb17a73c3160edf0426b1a1a (diff) | |
download | external_llvm-b05dc5546062f29bf08837db8f680879aa1c14cf.zip external_llvm-b05dc5546062f29bf08837db8f680879aa1c14cf.tar.gz external_llvm-b05dc5546062f29bf08837db8f680879aa1c14cf.tar.bz2 |
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-aarch64 | bin | 0 -> 3360 bytes | |||
-rw-r--r-- | test/DebugInfo/dwarfdump-aarch64.test | 16 |
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 Binary files differnew file mode 100644 index 0000000..f507968 --- /dev/null +++ b/test/DebugInfo/Inputs/dwarfdump-test.elf-aarch64 diff --git a/test/DebugInfo/dwarfdump-aarch64.test b/test/DebugInfo/dwarfdump-aarch64.test new file mode 100644 index 0000000..2f7bc47 --- /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) |