| $ cat eh_frame.cpp |
| int f1() |
| { |
| volatile int i; |
| return i; |
| } |
| |
| int main(int argc, char** argv) |
| { |
| return f1(); |
| } |
| |
| $ clang eh_frame.cpp -g -c -o eh_frame.o |
| $ ld -no_compact_unwind eh_frame.o -o eh_frame.out |
| |
| RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/eh_frame/eh_frame.out -o %t.dSYM |
| RUN: llvm-dwarfdump --verify %t.dSYM |
| RUN: llvm-otool -s __TEXT __eh_frame %p/../Inputs/private/tmp/eh_frame/eh_frame.out | FileCheck %s |
| RUN: llvm-otool -s __TEXT __eh_frame %t.dSYM/Contents/Resources/DWARF/eh_frame.out | FileCheck %s |
| |
| CHECK: 14 00 00 00 00 00 00 00 01 7a 52 00 01 78 10 01 |
| CHECK: 10 0c 07 08 90 01 00 00 |