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/trivial-object-test.macho-i386 \
10 RUN: | FileCheck %s -check-prefix macho
11 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
12 RUN: | FileCheck %s -check-prefix macho64
14 COFF: 00000000 d .data
15 COFF: 00000000 t .text
16 COFF: 00000000 d L{{_?}}.str
17 COFF: U {{_?}}SomeOtherFunction
18 COFF: 00000000 T {{_?}}main
22 ELF: U SomeOtherFunction
27 macho: 00000000 U _SomeOtherFunction
28 macho: 00000000 T _main
29 macho: 00000000 U _puts
31 macho64: 00000028 s L_.str
32 macho64: 00000000 U _SomeOtherFunction
33 macho64: 00000000 T _main
34 macho64: 00000000 U _puts