32 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple=i386-apple-macosx10.4 -filetype=obj -o %t/MachO_i386_eh_frame.o %s3# 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.o4 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) = 0x97 8 .section __TEXT,__text,regular,pure_instructions9 10 .globl bar11 .align 4, 0x9012bar:13 retl14 15 .globl main16 .align 4, 0x9017main:18 .cfi_startproc19 pushl %ebp20Ltmp0:21 .cfi_def_cfa_offset 822Ltmp1:23 .cfi_offset %ebp, -824 movl %esp, %ebp25Ltmp2:26 .cfi_def_cfa_register %ebp27 popl %ebp28 jmp bar29 .cfi_endproc30 31.subsections_via_symbols32