• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-nm \
2RUN:         | FileCheck %s -check-prefix COFF
3RUN: yaml2obj %p/Inputs/COFF/x86-64.yaml | llvm-nm \
4RUN          | FileCheck %s -check-prefix COFF
5RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \
6RUN:         | FileCheck %s -check-prefix ELF
7RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \
8RUN:         | FileCheck %s -check-prefix ELF
9RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
10RUN:         | FileCheck %s -check-prefix macho
11RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
12RUN:         | FileCheck %s -check-prefix macho64
13
14COFF: 00000000 d .data
15COFF: 00000000 t .text
16COFF: 00000000 d L{{_?}}.str
17COFF:          U {{_?}}SomeOtherFunction
18COFF: 00000000 T {{_?}}main
19COFF:          U {{_?}}puts
20
21ELF:          U SomeOtherFunction
22ELF: 00000000 T main
23ELF:          U puts
24
25
26macho: 00000000 U _SomeOtherFunction
27macho: 00000000 s _main
28macho: 00000000 U _puts
29
30macho64: 00000028 s L_.str
31macho64: 00000000 u _SomeOtherFunction
32macho64: 00000000 s _main
33macho64: 00000000 u _puts
34