Add yaml2obj. A utility to convert YAML to binaries.
[oota-llvm.git] / test / Object / nm-trivial-object.test
1 RUN: yaml2obj %p/COFF/i386.yaml | llvm-nm | FileCheck %s -check-prefix COFF
2 RUN: yaml2obj %p/COFF/x86-64.yaml | llvm-nm | FileCheck %s -check-prefix COFF
3 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \
4 RUN:         | FileCheck %s -check-prefix ELF
5 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \
6 RUN:         | FileCheck %s -check-prefix ELF
7 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
8 RUN:         | FileCheck %s -check-prefix macho
9 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
10 RUN:         | FileCheck %s -check-prefix macho64
11
12 COFF: 00000000 d .data
13 COFF: 00000000 t .text
14 COFF: 00000000 d L{{_?}}.str
15 COFF:          U {{_?}}SomeOtherFunction
16 COFF: 00000000 T {{_?}}main
17 COFF:          U {{_?}}puts
18
19 ELF:          U SomeOtherFunction
20 ELF: 00000000 T main
21 ELF:          U puts
22
23
24 macho: 00000000 U _SomeOtherFunction
25 macho: 00000000 s _main
26 macho: 00000000 U _puts
27
28 macho64: 00000028 s L_.str
29 macho64: 00000000 u _SomeOtherFunction
30 macho64: 00000000 s _main
31 macho64: 00000000 u _puts