diff options
| -rw-r--r-- | lld/test/ELF/Inputs/eh-frame.s | 3 | ||||
| -rw-r--r-- | lld/test/ELF/eh-frame.s | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lld/test/ELF/Inputs/eh-frame.s b/lld/test/ELF/Inputs/eh-frame.s new file mode 100644 index 00000000000..0aa4008b7b2 --- /dev/null +++ b/lld/test/ELF/Inputs/eh-frame.s @@ -0,0 +1,3 @@ +.cfi_startproc +.cfi_def_cfa_offset 32 +.cfi_endproc diff --git a/lld/test/ELF/eh-frame.s b/lld/test/ELF/eh-frame.s new file mode 100644 index 00000000000..a07d242add1 --- /dev/null +++ b/lld/test/ELF/eh-frame.s @@ -0,0 +1,12 @@ +// REQUIRES: x86 +// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o +// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/eh-frame.s -o %t2.o +// RUN: ld.lld %t1.o %t2.o -o %t +// RUN: llvm-dwarfdump -eh-frame %t | FileCheck %s + +// CHECK: DW_CFA_def_cfa_offset: +64 +// CHECK: DW_CFA_def_cfa_offset: +32 + +.cfi_startproc +.cfi_def_cfa_offset 64 +.cfi_endproc |

