brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · cc3df00 Raw
59 lines · plain
1// RUN: llvm-mc -triple i386-apple-darwin %s -filetype=obj -o - | llvm-readobj -S --sd -r - | FileCheck %s2 3// Make sure MC can handle file level .cfi_startproc and .cfi_endproc that creates4// an empty frame.5// rdar://100171846_proc:7.cfi_startproc8.cfi_endproc9 10// Check that we don't produce a relocation for the CIE pointer and therefore11// we have only one relocation in __debug_frame.12 13	.section	__TEXT,__text,regular,pure_instructions14	.globl	_f15	.align	4, 0x9016_f:                                     ## @f17Ltmp0:18	.cfi_startproc19## %bb.0:                               ## %entry20	movl	$42, %eax21	ret22Ltmp1:23	.cfi_endproc24Leh_func_end0:25 26	.cfi_sections .debug_frame27Ltext_end:28 29// CHECK: Section {30// CHECK:     Index: 131// CHECK:     Name: __debug_frame (5F 5F 64 65 62 75 67 5F 66 72 61 6D 65 00 00 00)32// CHECK:     Segment: __DWARF (5F 5F 44 57 41 52 46 00 00 00 00 00 00 00 00 00)33// CHECK:     Address: 0x834// CHECK:     Size: 0x3435// CHECK:     Offset: 33236// CHECK:     Alignment: 237// CHECK:     RelocationOffset: 0x18038// CHECK:     RelocationCount: 239// CHECK:     Type: Regular (0x0)40// CHECK:     Attributes [ (0x20000)41// CHECK:       Debug (0x20000)42// CHECK:     ]43// CHECK:     Reserved1: 0x044// CHECK:     Reserved2: 0x045// CHECK:     SectionData (46// CHECK:       0000: 10000000 FFFFFFFF 04000400 017C080C  |.............|..|47// CHECK:       0010: 04048801 0C000000 00000000 00000000  |................|48// CHECK:       0020: 00000000 0C000000 00000000 00000000  |................|49// CHECK:       0030: 06000000                             |....|50// CHECK:     )51// CHECK:   }52// CHECK: ]53// CHECK: Relocations [54// CHECK:   Section __debug_frame {55// CHECK:     0x2C 0 2 0 GENERIC_RELOC_VANILLA 0 __text56// CHECK:     0x1C 0 2 0 GENERIC_RELOC_VANILLA 0 __text57// CHECK:   }58// CHECK: ]59