• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: llvm-nm -D %p/Inputs/shared-object-test.elf-i386 \
2RUN:         | FileCheck %s -check-prefix ELF-32
3
4ELF-32-NOT: U
5ELF-32: 000012c8 A __bss_start
6ELF-32: 000012c8 A _edata
7ELF-32: 000012cc A _end
8ELF-32: 000012c8 B common_sym
9ELF-32: 000012c4 D defined_sym
10ELF-32: 000001f0 T global_func
11ELF-32: 00000000 D tls_sym
12
13RUN: llvm-nm -D %p/Inputs/shared-object-test.elf-x86-64 \
14RUN:         | FileCheck %s -check-prefix ELF-64
15
16ELF-64-NOT: U
17ELF-64: 0000000000200454 A __bss_start
18ELF-64: 0000000000200454 A _edata
19ELF-64: 0000000000200458 A _end
20ELF-64: 0000000000200454 B common_sym
21ELF-64: 0000000000200450 D defined_sym
22ELF-64: 00000000000002f0 T global_func
23ELF-64: 0000000000000000 D tls_sym
24
25RUN: not llvm-nm -D %p/Inputs/weak-global-symbol.macho-i386 2>&1 \
26RUN:         | FileCheck %s -check-prefix ERROR
27
28RUN: not llvm-nm -D %p/Inputs/trivial-object-test.coff-i386 2>&1 \
29RUN:         | FileCheck %s -check-prefix ERROR
30
31ERROR: File format has no dynamic symbol table.
32