Home | History | Annotate | Download | only in Object
      1 RUN: llvm-nm -arch all %p/Inputs/macho-universal.x86_64.i386 \
      2 RUN:         | FileCheck %s -check-prefix CHECK-OBJ
      3 RUN: llvm-nm -arch x86_64 %p/Inputs/macho-universal.x86_64.i386 \
      4 RUN:         | FileCheck %s -check-prefix CHECK-OBJ-x86_64
      5 RUN: not llvm-nm -arch armv7m %p/Inputs/macho-universal.x86_64.i386 2>&1 \
      6 RUN:         | FileCheck %s -check-prefix CHECK-OBJ-armv7m
      7 RUN: not llvm-nm -arch foobar %p/Inputs/macho-universal.x86_64.i386 2>&1 \
      8 RUN:         | FileCheck %s -check-prefix CHECK-OBJ-foobar
      9 RUN: llvm-nm -arch all %p/Inputs/macho-universal-archive.x86_64.i386 \
     10 RUN:         | FileCheck %s -check-prefix CHECK-AR
     11 RUN: llvm-nm -arch i386 %p/Inputs/macho-universal-archive.x86_64.i386 \
     12 RUN:         | FileCheck %s -check-prefix CHECK-AR-i386
     13 RUN: llvm-nm -o -arch all %p/Inputs/macho-universal-archive.x86_64.i386 \
     14 RUN:         | FileCheck %s -check-prefix CHECK-AR-o
     15 
     16 CHECK-OBJ: macho-universal.x86_64.i386 (for architecture x86_64):
     17 CHECK-OBJ: 0000000100000f60 T _main
     18 CHECK-OBJ: macho-universal.x86_64.i386 (for architecture i386):
     19 CHECK-OBJ: 00001fa0 T _main
     20 
     21 CHECK-OBJ-x86_64: 0000000100000000 T __mh_execute_header
     22 CHECK-OBJ-x86_64: 0000000100000f60 T _main
     23 CHECK-OBJ-x86_64:                  U dyld_stub_binder
     24 
     25 CHECK-OBJ-armv7m-NOT: Unknown architecture named
     26 CHECK-OBJ-armv7m: does not contain architecture
     27 
     28 CHECK-OBJ-foobar: Unknown architecture named
     29 CHECK-OBJ-foobar: does not contain architecture
     30 
     31 CHECK-AR: macho-universal-archive.x86_64.i386(hello.o) (for architecture x86_64):
     32 CHECK-AR: 0000000000000068 s EH_frame0
     33 CHECK-AR: 000000000000003b s L_.str
     34 CHECK-AR: 0000000000000000 T _main
     35 CHECK-AR: 0000000000000080 S _main.eh
     36 CHECK-AR:                  U _printf
     37 CHECK-AR: macho-universal-archive.x86_64.i386(foo.o) (for architecture i386):
     38 CHECK-AR: 00000008 D _bar
     39 CHECK-AR: 00000000 T _foo
     40 
     41 CHECK-AR-i386: macho-universal-archive.x86_64.i386(foo.o):
     42 CHECK-AR-i386: 00000008 D _bar
     43 CHECK-AR-i386: 00000000 T _foo
     44 
     45 CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000068 s EH_frame0
     46 CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 000000000000003b s L_.str
     47 CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000000 T _main
     48 CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o: 0000000000000080 S _main.eh
     49 CHECK-AR-o: (for architecture x86_64):{{.*}}/macho-universal-archive.x86_64.i386:hello.o:                  U _printf
     50 CHECK-AR-o: (for architecture i386):{{.*}}/macho-universal-archive.x86_64.i386:foo.o: 00000008 D _bar
     51 CHECK-AR-o: (for architecture i386):{{.*}}/macho-universal-archive.x86_64.i386:foo.o: 00000000 T _foo
     52