31 lines · plain
1# RUN: llvm-mc -filetype=asm -triple x86_64-pc-linux-gnu %s -o - | FileCheck --check-prefix=ASM %s2# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t3# RUN: llvm-readelf -S -r -x .eh_frame %t | FileCheck --check-prefix=READELF %s4 5f:6 .cfi_startproc7 nop8 .cfi_llvm_def_aspace_cfa %rcx, 0, 69 nop10 .cfi_endproc11 12# ASM: f:13# ASM-NEXT: .cfi_startproc14# ASM-NEXT: nop15# ASM-NEXT: .cfi_llvm_def_aspace_cfa %rcx, 0, 616# ASM-NEXT: nop17# ASM-NEXT: .cfi_endproc18 19# READELF: Section Headers:20# READELF: Name Type Address Off Size ES Flg Lk Inf Al21# READELF: .eh_frame X86_64_UNWIND 0000000000000000 000048 000030 00 A 0 0 822 23# READELF: Relocation section '.rela.eh_frame' at offset 0xc0 contains 1 entries:24# READELF-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend25# READELF-NEXT: 0000000000000020 0000000100000002 R_X86_64_PC32 0000000000000000 .text + 026 27# READELF: Hex dump of section '.eh_frame':28# READELF-NEXT: 0x00000000 14000000 00000000 017a5200 0178100129# READELF-NEXT: 0x00000010 1b0c0708 90010000 14000000 1c00000030# READELF-NEXT: 0x00000020 00000000 02000000 00413002 0006000031