brintos

brintos / llvm-project-archived public Read only

0
0
Text · 832 B · 800bf66 Raw
26 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple x86_64-apple-macosx10.9 -filetype=obj \3# RUN:   -o %t/MachO_extra_def_strong.o %S/Inputs/MachO_extra_def_strong.s4# RUN: llvm-ar crs %t/libExtraDef.a %t/MachO_extra_def_strong.o5# RUN: llvm-mc -triple x86_64-apple-macosx10.9 -filetype=obj \6# RUN:   -o %t/MachO_archive_support.o %s7# RUN: llvm-jitlink -noexec %t/MachO_archive_support.o -lFoo -jd Foo -L%t -lExtraDef8# RUN: llvm-jitlink -noexec %t/MachO_archive_support.o -lFoo -jd Foo %t/libExtraDef.a9#10# Test that archives can be loaded and referenced from other JITDylibs.11 12        .section  __TEXT,__text,regular,pure_instructions13 14        .globl  _main15        .p2align  4, 0x9016_main:17        retq18 19	.section	__DATA,__data20	.globl	ExtraDefRef21	.p2align	322ExtraDefRef:23	.quad	ExtraDef24 25        .subsections_via_symbols26