diff options
Diffstat (limited to 'test/ELF/relocatable-eh-frame.s')
-rw-r--r-- | test/ELF/relocatable-eh-frame.s | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/ELF/relocatable-eh-frame.s b/test/ELF/relocatable-eh-frame.s new file mode 100644 index 000000000000..c2e5ec63f865 --- /dev/null +++ b/test/ELF/relocatable-eh-frame.s @@ -0,0 +1,19 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o +# RUN: ld.lld -r %t.o %t.o -o %t +# RUN: llvm-readobj -r %t | FileCheck %s +# RUN: ld.lld %t -o %t.so -shared +# RUN: llvm-objdump -h %t.so | FileCheck --check-prefix=DSO %s + +# DSO: .eh_frame 00000030 + +# CHECK: Relocations [ +# CHECK-NEXT: Section ({{.*}}) .rela.eh_frame { +# CHECK-NEXT: 0x20 R_X86_64_PC32 .foo 0x0 +# CHECK-NEXT: 0x50 R_X86_64_NONE - 0x0 +# CHECK-NEXT: } +# CHECK-NEXT: ] + +.section .foo,"aG",@progbits,bar,comdat +.cfi_startproc +.cfi_endproc |