| 1 |
$ cat eh_frame.cpp |
| 2 |
int f1() |
| 3 |
{ |
| 4 |
volatile int i; |
| 5 |
return i; |
| 6 |
} |
| 7 |
|
| 8 |
int main(int argc, char** argv) |
| 9 |
{ |
| 10 |
return f1(); |
| 11 |
} |
| 12 |
|
| 13 |
$ clang eh_frame.cpp -g -c -o eh_frame.o |
| 14 |
$ ld -no_compact_unwind eh_frame.o -o eh_frame.out |
| 15 |
|
| 16 |
RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/eh_frame/eh_frame.out -o %t.dSYM |
| 17 |
RUN: llvm-dwarfdump --verify %t.dSYM |
| 18 |
RUN: llvm-otool -s __TEXT __eh_frame %p/../Inputs/private/tmp/eh_frame/eh_frame.out | FileCheck %s |
| 19 |
RUN: llvm-otool -s __TEXT __eh_frame %t.dSYM/Contents/Resources/DWARF/eh_frame.out | FileCheck %s |
| 20 |
|
| 21 |
RUN: dsymutil --linker parallel -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/eh_frame/eh_frame.out -o %t.dSYM |
| 22 |
RUN: llvm-dwarfdump --verify %t.dSYM |
| 23 |
RUN: llvm-otool -s __TEXT __eh_frame %p/../Inputs/private/tmp/eh_frame/eh_frame.out | FileCheck %s |
| 24 |
RUN: llvm-otool -s __TEXT __eh_frame %t.dSYM/Contents/Resources/DWARF/eh_frame.out | FileCheck %s |
| 25 |
|
| 26 |
CHECK: 14 00 00 00 00 00 00 00 01 7a 52 00 01 78 10 01 |
| 27 |
CHECK: 10 0c 07 08 90 01 00 00 |