"stub" is a bit too overloaded... we were using it to refer to TAPI files, but it's also the name for the PLT trampolines in Mach-O. Going ahead, let's just use "TAPI" or ".tbd" to refer to TAPI stuff. Reviewed By: #lld-macho, oontvoo Differential Revision: https://reviews.llvm.org/D99807
15 lines
410 B
ArmAsm
15 lines
410 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: mkdir -p %t
|
|
# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %s -o %t/test.o
|
|
# RUN: %lld -o %t/test -framework CoreFoundation %t/test.o
|
|
#
|
|
# RUN: llvm-objdump --macho --dylibs-used %t/test | FileCheck %s
|
|
# CHECK: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
|
|
|
|
.section __TEXT,__text
|
|
.global _main
|
|
|
|
_main:
|
|
movq __CFBigNumGetInt128@GOTPCREL(%rip), %rax
|
|
ret
|