1 # RUN: yaml2obj %s > %t.in.o
3 # RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE
5 # RUN: llvm-objcopy -N func %t.in.o %t.out.o
6 # RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-POST
8 # RUN: not llvm-objcopy -N .weak.foobar.file1 %t.in.o %t.err.o 2>&1 | FileCheck %s --check-prefix=ERROR
10 # SYMBOLS: SYMBOL TABLE:
11 # SYMBOLS-PRE-NEXT: func
12 # SYMBOLS-NEXT: .weak.foobar.file1
13 # SYMBOLS-NEXT: foobar
14 # SYMBOLS-PRE-NEXT: AUX indx 1
15 # SYMBOLS-POST-NEXT: AUX indx 0
18 # ERROR: symbol 'foobar' is missing its weak target
22 Machine: IMAGE_FILE_MACHINE_AMD64
31 SimpleType: IMAGE_SYM_TYPE_NULL
32 ComplexType: IMAGE_SYM_DTYPE_NULL
33 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
34 - Name: .weak.foobar.file1
37 SimpleType: IMAGE_SYM_TYPE_NULL
38 ComplexType: IMAGE_SYM_DTYPE_NULL
39 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
43 SimpleType: IMAGE_SYM_TYPE_NULL
44 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
45 StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL
48 Characteristics: IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY