1 # RUN: rm -rf %t && mkdir -p %t
2 # RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj \
3 # RUN: -o %t/global_lp_def.o %S/Inputs/MachO_global_linker_private_def.s
4 # RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj \
5 # RUN: -o %t/internal_lp_def.o %S/Inputs/MachO_internal_linker_private_def.s
6 # RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj \
7 # RUN: -o %t/macho_lp_test.o %s
8 # RUN: llvm-jitlink -noexec %t/global_lp_def.o %t/macho_lp_test.o
9 # RUN: not llvm-jitlink -noexec %t/internal_lp_def.o %t/macho_lp_test.o
11 # Check that we can resolve global symbols whose names start with the
12 # linker-private prefix 'l' across object boundaries, and that we can't resolve
13 # internals with the linker-private prefix across object boundaries.
15 .section __TEXT,__text,regular,pure_instructions
16 .macosx_version_min 10, 14
22 .subsections_via_symbols