summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2016-12-16 16:31:10 +0000
committerDavid Blaikie <dblaikie@gmail.com>2016-12-16 16:31:10 +0000
commite9fda9f2013b1356aa48db6897eeaee2c21da603 (patch)
tree0f62759c21c5b796d4c4b3848d42eba8d9500431 /llvm/test
parente0a1bdad3f54859678aa60959ef33be4ef69be50 (diff)
downloadbcm5719-llvm-e9fda9f2013b1356aa48db6897eeaee2c21da603.tar.gz
bcm5719-llvm-e9fda9f2013b1356aa48db6897eeaee2c21da603.zip
dwarfdump: Support/process relocations on a CU's abbrev_off
Input can be produced by ld -r, for example (a normal LLVM workflow never hits this - LLVM only ever produces a single abbrev table in an object (shared by multiple CUs), so the reloc's always 0, and when it's linked together the relocation's resolved so it doesn't need to be handled) llvm-svn: 289954
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/DebugInfo/Inputs/dwarfdump-abbrev-off.elf-x86-64bin0 -> 2720 bytes
-rw-r--r--llvm/test/DebugInfo/dwarfdump-abbrev-off.test8
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-abbrev-off.elf-x86-64 b/llvm/test/DebugInfo/Inputs/dwarfdump-abbrev-off.elf-x86-64
new file mode 100644
index 00000000000..bc196b5995b
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/dwarfdump-abbrev-off.elf-x86-64
Binary files differ
diff --git a/llvm/test/DebugInfo/dwarfdump-abbrev-off.test b/llvm/test/DebugInfo/dwarfdump-abbrev-off.test
new file mode 100644
index 00000000000..2937d8cbdde
--- /dev/null
+++ b/llvm/test/DebugInfo/dwarfdump-abbrev-off.test
@@ -0,0 +1,8 @@
+RUN: llvm-dwarfdump -debug-dump=info %p/Inputs/dwarfdump-abbrev-off.elf-x86-64 | FileCheck %s
+
+Check that we apply relocations to the abbr_offset - while LLVM never produces
+an object file like this, a reproduction can be produced by linking two simple
+object files together with ld -r.
+
+CHECK: abbr_offset = 0x0000
+CHECK: abbr_offset = 0x0010
OpenPOWER on IntegriCloud