Files
clang-p2996/lld/test/MachO/invalid/stub-link.s
Greg McGary cc1cf6332a [lld-macho] Implement option: -undefined TREATMENT
TREATMENT can be `error`, `warning`, `suppress`, or `dynamic_lookup`
The `dymanic_lookup` remains unimplemented for now.

Differential Revision: https://reviews.llvm.org/D93263
2020-12-17 17:40:50 -08:00

21 lines
724 B
ArmAsm

## FIXME: This test seems to be failing on some Google Mac buildbots for
## unclear reasons, so it's disabled for now. See D85404 for details.
# UNSUPPORTED: darwin
# REQUIRES: x86
# RUN: mkdir -p %t
#
# RUN: llvm-mc -filetype obj -triple x86_64-apple-ios %s -o %t/test.o
# RUN: not lld -flavor darwinnew -o %t/test -syslibroot %S/../Inputs/iPhoneSimulator.sdk -lSystem %t/test.o 2>&1 | FileCheck %s
# CHECK-DAG: error: undefined symbol: __cache_handle_memory_pressure_event
# CHECK-DAG: error: undefined symbol: _from_non_reexported_tapi_dylib
.section __TEXT,__text
.global _main
_main:
movq __cache_handle_memory_pressure_event@GOTPCREL(%rip), %rax
movq _from_non_reexported_tapi_dylib@GOTPCREL(%rip), %rax
ret