summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-12-14 21:39:27 +0000
committerPete Cooper <peter_cooper@apple.com>2015-12-14 21:39:27 +0000
commit23bfa7e92561710d11b1ad2c4ce43e14c00e81d9 (patch)
tree34b77e6d53edeb2b7816b17dfb914aa477372669 /llvm/test/tools/llvm-objdump
parent97c191c473bf7fb58a53210c3f77f31d4c25f2bd (diff)
downloadbcm5719-llvm-23bfa7e92561710d11b1ad2c4ce43e14c00e81d9.tar.gz
bcm5719-llvm-23bfa7e92561710d11b1ad2c4ce43e14c00e81d9.zip
Print the eh_frame section in MachoDump.
This is the start of work to dump the contents of the eh_frame section. It currently emits CIE entries. FDE entries will come later. It also needs improved error checking which will follow soon. http://reviews.llvm.org/D15502 Reviewed by Kevin Enderby and Lang Hames. llvm-svn: 255546
Diffstat (limited to 'llvm/test/tools/llvm-objdump')
-rw-r--r--llvm/test/tools/llvm-objdump/Inputs/eh_frame.macho-arm64bin0 -> 888 bytes
-rw-r--r--llvm/test/tools/llvm-objdump/eh_frame-arm64.test18
2 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/Inputs/eh_frame.macho-arm64 b/llvm/test/tools/llvm-objdump/Inputs/eh_frame.macho-arm64
new file mode 100644
index 00000000000..1c5413230d7
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/Inputs/eh_frame.macho-arm64
Binary files differ
diff --git a/llvm/test/tools/llvm-objdump/eh_frame-arm64.test b/llvm/test/tools/llvm-objdump/eh_frame-arm64.test
new file mode 100644
index 00000000000..dbc6bcfcf91
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/eh_frame-arm64.test
@@ -0,0 +1,18 @@
+# RUN: llvm-objdump -unwind-info %p/Inputs/eh_frame.macho-arm64 2>/dev/null | FileCheck %s
+
+# CHECK: Contents of __eh_frame section:
+# CHECK: CIE:
+# CHECK: Length: 16
+# CHECK: CIE ID: 0
+# CHECK: Version: 1
+# CHECK: Augmentation String: zR
+# CHECK: Code Alignment Factor: 1
+# CHECK: Data Alignment Factor: -8
+# CHECK: Return Address Register: 30
+# CHECK: Augmentation Data Length: 1
+# CHECK: FDE Address Pointer Encoding: 16
+# CHECK: Instructions:
+# CHECK: 0c 1f 00
+# CHECK: FDE:
+# CHECK: Length: 32
+# CHECK: e4 ff ff ff ff ff ff ff 20 00 00 00 00 00 00 00 00 48 0e 10 9e 01 9d 02 00 00 00 00
OpenPOWER on IntegriCloud