brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 37d28fd Raw
44 lines · plain
1# REQUIRES: x862 3# RUN: rm -rf %t; split-file %s %t4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/main.o %t/main.s5# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/lib.o %t/lib.s6# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/lib2.o %t/lib2.s7# RUN: llvm-ar crST %t/lib.a %t/lib.o %t/lib2.o8# RUN: %lld %t/main.o %t/lib.a -o %t/out9# RUN: llvm-nm %t/out | FileCheck %s10 11# CHECK-NOT: T _bar12# CHECK:     T _foo13 14## Test that every kind of eager load mechanism still works.15# RUN: %lld %t/main.o %t/lib.a -all_load -o %t/all_load16# RUN: llvm-nm %t/all_load | FileCheck %s --check-prefix FORCED-LOAD17# RUN: %lld %t/main.o -force_load %t/lib.a -o %t/force_load18# RUN: llvm-nm %t/force_load | FileCheck %s --check-prefix FORCED-LOAD19# RUN: %lld %t/main.o %t/lib.a -ObjC -o %t/objc20# RUN: llvm-nm %t/objc | FileCheck %s --check-prefix FORCED-LOAD21 22# FORCED-LOAD: T _bar23 24#--- lib.s25.global _foo26_foo:27    ret28 29#--- lib2.s30.section __DATA,__objc_catlist31.quad 0x123432 33.section __TEXT,__text34.global _bar35_bar:36    ret37 38#--- main.s39.global _main40_main:41    call _foo    42    mov $0, %rax43    ret44