[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / lld / test / MachO / mark-dead-strippable-dylib.s
blobb6c308d5e536faee5f9b7840fc73660615b000d6
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t.o %s
5 # RUN: %no-fatal-warnings-lld -o %t.exec %t.o -mark_dead_strippable_dylib 2>&1 \
6 # RUN: | FileCheck --check-prefix=WARN %s
7 # RUN: llvm-objdump --macho --private-header %t.exec \
8 # RUN: | FileCheck --check-prefix=NO-DS %s
10 # RUN: %no-fatal-warnings-lld -bundle -o %t.bundle %t.o \
11 # RUN: -mark_dead_strippable_dylib 2>&1 \
12 # RUN: | FileCheck --check-prefix=WARN %s
13 # RUN: llvm-objdump --macho --private-header %t.bundle \
14 # RUN: | FileCheck --check-prefix=NO-DS %s
16 # RUN: %lld -dylib -o %t.dylib %t.o -mark_dead_strippable_dylib 2>&1
17 # RUN: llvm-objdump --macho --private-header %t.dylib \
18 # RUN: | FileCheck --check-prefix=DS %s
20 # WARN: warning: -mark_dead_strippable_dylib: ignored, only has effect with -dylib
22 # NO-DS-NOT: DEAD_STRIPPABLE_DYLIB
23 # DS: DEAD_STRIPPABLE_DYLIB
25 .globl _main
26 _main:
27 ret