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