1 RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-nm \
2 RUN: | FileCheck %s -check-prefix COFF
3 RUN: yaml2obj %p/Inputs/COFF/x86-64.yaml | llvm-nm \
4 RUN: | FileCheck %s -check-prefix COFF
5 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \
6 RUN: | FileCheck %s -check-prefix ELF
7 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \
8 RUN: | FileCheck %s -check-prefix ELF
9 RUN: llvm-nm %p/Inputs/weak.elf-x86-64 \
10 RUN: | FileCheck %s -check-prefix WEAK-ELF
11 RUN: llvm-nm %p/Inputs/absolute.elf-x86-64 \
12 RUN: | FileCheck %s -check-prefix ABSOLUTE-ELF
13 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
14 RUN: | FileCheck %s -check-prefix macho
15 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
16 RUN: | FileCheck %s -check-prefix macho64
17 RUN: llvm-nm %p/Inputs/common.coff-i386 \
18 RUN: | FileCheck %s -check-prefix COFF-COMMON
20 COFF: 00000000 d .data
21 COFF: 00000000 t .text
22 COFF: 00000000 d L{{_?}}.str
23 COFF: U {{_?}}SomeOtherFunction
24 COFF: 00000000 T {{_?}}main
27 COFF-COMMON: 00000000 b .bss
28 COFF-COMMON-NEXT: 00000000 d .data
29 COFF-COMMON-NEXT: 00000000 d .drectve
30 COFF-COMMON-NEXT: 00000000 n .file
31 COFF-COMMON-NEXT: 00000000 r .rdata$zzz
32 COFF-COMMON-NEXT: 00000000 t .text
33 COFF-COMMON-NEXT: C _a
37 ELF: U SomeOtherFunction
42 WEAK-ELF: 00000000 W f2
44 WEAK-ELF: 00000000 V x2
46 ABSOLUTE-ELF: 00000123 a a1
47 ABSOLUTE-ELF: 00000123 A a2
49 macho: 00000000 U _SomeOtherFunction
50 macho: 00000000 T _main
51 macho: 00000000 U _puts
53 macho64: 00000028 s L_.str
54 macho64: 00000000 U _SomeOtherFunction
55 macho64: 00000000 T _main
56 macho64: 00000000 U _puts