Home | History | Annotate | Download | only in X86
      1 # RUN: rm -rf %t && mkdir -p %t
      2 # RUN: llvm-mc -triple=i386-apple-macosx10.4 -filetype=obj -o %t/MachO_i386_eh_frame.o %s
      3 # RUN: llvm-rtdyld -triple=i386-apple-macosx10.4 -verify -map-section MachO_i386_eh_frame.o,__text=0x2000 -check=%s %t/MachO_i386_eh_frame.o
      4 
      5 # rtdyld-check: *{4}(section_addr(MachO_i386_eh_frame.o, __eh_frame) + 0x20) = (main - (section_addr(MachO_i386_eh_frame.o, __eh_frame) + 0x20))[31:0]
      6 # rtdyld-check: *{4}(section_addr(MachO_i386_eh_frame.o, __eh_frame) + 0x24) = 0x9
      7 
      8 	.section	__TEXT,__text,regular,pure_instructions
      9 
     10 	.globl	bar
     11 	.align	4, 0x90
     12 bar:
     13         retl
     14 
     15         .globl	main
     16 	.align	4, 0x90
     17 main:
     18 	.cfi_startproc
     19 	pushl	%ebp
     20 Ltmp0:
     21 	.cfi_def_cfa_offset 8
     22 Ltmp1:
     23 	.cfi_offset %ebp, -8
     24 	movl	%esp, %ebp
     25 Ltmp2:
     26 	.cfi_def_cfa_register %ebp
     27 	popl	%ebp
     28 	jmp	bar
     29 	.cfi_endproc
     30 
     31 .subsections_via_symbols
     32