Home | History | Annotate | Download | only in ELF
      1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sr -sd | FileCheck %s
      2 
      3 // Test that we don't produce a DW_CFA_advance_loc 0
      4 
      5 f:
      6 	.cfi_startproc
      7         nop
      8 	.cfi_def_cfa_offset 16
      9         nop
     10 	.cfi_remember_state
     11 	.cfi_def_cfa_offset 8
     12         nop
     13 	.cfi_restore_state
     14         nop
     15 	.cfi_endproc
     16 
     17 // CHECK:        Section {
     18 // CHECK:          Name: .eh_frame
     19 // CHECK-NEXT:     Type: SHT_PROGBITS
     20 // CHECK-NEXT:     Flags [
     21 // CHECK-NEXT:       SHF_ALLOC
     22 // CHECK-NEXT:     ]
     23 // CHECK-NEXT:     Address: 0x0
     24 // CHECK-NEXT:     Offset: 0x48
     25 // CHECK-NEXT:     Size: 56
     26 // CHECK-NEXT:     Link: 0
     27 // CHECK-NEXT:     Info: 0
     28 // CHECK-NEXT:     AddressAlignment: 8
     29 // CHECK-NEXT:     EntrySize: 0
     30 // CHECK-NEXT:     Relocations [
     31 // CHECK-NEXT:     ]
     32 // CHECK-NEXT:     SectionData (
     33 // CHECK-NEXT:       0000: 14000000 00000000 017A5200 01781001
     34 // CHECK-NEXT:       0010: 1B0C0708 90010000 1C000000 1C000000
     35 // CHECK-NEXT:       0020: 00000000 04000000 00410E10 410A0E08
     36 // CHECK-NEXT:       0030: 410B0000 00000000
     37 // CHECK-NEXT:     )
     38 // CHECK-NEXT:   }
     39 
     40 // CHECK:        Section {
     41 // CHECK:          Name: .rela.eh_frame
     42 // CHECK-NEXT:     Type: SHT_RELA
     43 // CHECK-NEXT:     Flags [
     44 // CHECK-NEXT:     ]
     45 // CHECK-NEXT:     Address: 0x0
     46 // CHECK-NEXT:     Offset: 0x398
     47 // CHECK-NEXT:     Size: 24
     48 // CHECK-NEXT:     Link: 7
     49 // CHECK-NEXT:     Info: 4
     50 // CHECK-NEXT:     AddressAlignment: 8
     51 // CHECK-NEXT:     EntrySize: 24
     52 // CHECK-NEXT:     Relocations [
     53 // CHECK-NEXT:       0x20 R_X86_64_PC32 .text 0x0
     54 // CHECK-NEXT:     ]
     55