50 lines · plain
1# RUN: yaml2obj %s -o %t.in.o2 3# RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE4 5# RUN: llvm-objcopy -N func %t.in.o %t.out.o6# RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-POST7 8# RUN: not llvm-objcopy -N .weak.foobar.file1 %t.in.o %t.err.o 2>&1 | FileCheck %s --check-prefix=ERROR9 10# SYMBOLS: SYMBOL TABLE:11# SYMBOLS-PRE-NEXT: func12# SYMBOLS-NEXT: .weak.foobar.file113# SYMBOLS-NEXT: foobar14# SYMBOLS-PRE-NEXT: AUX indx 115# SYMBOLS-POST-NEXT: AUX indx 016# SYMBOLS-EMPTY:17 18# ERROR: symbol 'foobar' is missing its weak target19 20--- !COFF21header: 22 Machine: IMAGE_FILE_MACHINE_AMD6423 Characteristics: [ ]24sections: 25 - Name: .text26 Characteristics: [ ]27symbols: 28 - Name: func29 Value: 030 SectionNumber: 131 SimpleType: IMAGE_SYM_TYPE_NULL32 ComplexType: IMAGE_SYM_DTYPE_NULL33 StorageClass: IMAGE_SYM_CLASS_EXTERNAL34 - Name: .weak.foobar.file135 Value: 136 SectionNumber: 137 SimpleType: IMAGE_SYM_TYPE_NULL38 ComplexType: IMAGE_SYM_DTYPE_NULL39 StorageClass: IMAGE_SYM_CLASS_EXTERNAL40 - Name: foobar41 Value: 042 SectionNumber: 043 SimpleType: IMAGE_SYM_TYPE_NULL44 ComplexType: IMAGE_SYM_DTYPE_FUNCTION45 StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL46 WeakExternal: 47 TagIndex: 148 Characteristics: IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY49...50