summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2015-07-09 22:32:24 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2015-07-09 22:32:24 +0000
commit20546ffd4aa654066d7af1eed475598c1f1ac7b9 (patch)
tree13edff52313be8b0ae0846d250a039e631d71b55 /llvm/test
parent28148ba82dfab4ae9a00124beab1aeb14708d08e (diff)
downloadbcm5719-llvm-20546ffd4aa654066d7af1eed475598c1f1ac7b9.tar.gz
bcm5719-llvm-20546ffd4aa654066d7af1eed475598c1f1ac7b9.zip
[Object][ELF] Support dumping hash-tables from files with no section table.
This time without breaking the bots. llvm-svn: 241869
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Object/Inputs/no-section-table.sobin0 -> 2544 bytes
-rw-r--r--llvm/test/Object/no-section-table.test8
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/no-section-table.so b/llvm/test/Object/Inputs/no-section-table.so
new file mode 100644
index 00000000000..fd176ebf7ce
--- /dev/null
+++ b/llvm/test/Object/Inputs/no-section-table.so
Binary files differ
diff --git a/llvm/test/Object/no-section-table.test b/llvm/test/Object/no-section-table.test
new file mode 100644
index 00000000000..1049390ce85
--- /dev/null
+++ b/llvm/test/Object/no-section-table.test
@@ -0,0 +1,8 @@
+RUN: llvm-readobj %p/Inputs/no-section-table.so -hash-table | FileCheck %s
+
+CHECK: HashTable {
+CHECK: Num Buckets: 3
+CHECK: Num Chains: 13
+CHECK: Buckets: [12, 10, 11]
+CHECK: Chains: [0, 0, 0, 0, 2, 3, 4, 0, 7, 5, 6, 8, 9]
+CHECK: }
OpenPOWER on IntegriCloud