2012-02-28 00:40:37 +00:00
|
|
|
RUN: llvm-nm -D %p/Inputs/shared-object-test.elf-i386 \
|
2012-09-21 07:08:08 +00:00
|
|
|
RUN: | FileCheck %s -check-prefix ELF-32
|
2012-02-28 00:40:37 +00:00
|
|
|
|
2014-01-31 21:40:13 +00:00
|
|
|
ELF-32-NOT: U
|
2012-09-21 07:08:08 +00:00
|
|
|
ELF-32: 0012c8 A __bss_start
|
|
|
|
ELF-32: 0012c8 A _edata
|
|
|
|
ELF-32: 0012cc A _end
|
|
|
|
ELF-32: 0012c8 B common_sym
|
|
|
|
ELF-32: 0012c4 D defined_sym
|
|
|
|
ELF-32: 0001f0 T global_func
|
2014-01-30 00:42:30 +00:00
|
|
|
ELF-32: 000000 D tls_sym
|
2012-09-21 07:08:08 +00:00
|
|
|
|
2014-01-30 20:45:33 +00:00
|
|
|
RUN: llvm-nm -D %p/Inputs/shared-object-test.elf-x86-64 \
|
|
|
|
RUN: | FileCheck %s -check-prefix ELF-64
|
|
|
|
|
2014-01-31 21:40:13 +00:00
|
|
|
ELF-64-NOT: U
|
2012-09-21 07:08:08 +00:00
|
|
|
ELF-64: 200454 A __bss_start
|
|
|
|
ELF-64: 200454 A _edata
|
|
|
|
ELF-64: 200458 A _end
|
|
|
|
ELF-64: 200454 B common_sym
|
|
|
|
ELF-64: 200450 D defined_sym
|
|
|
|
ELF-64: 0002f0 T global_func
|
2014-01-30 00:42:30 +00:00
|
|
|
ELF-64: 000000 D tls_sym
|
2014-01-30 20:45:33 +00:00
|
|
|
|
|
|
|
RUN: not llvm-nm -D %p/Inputs/weak-global-symbol.macho-i386 2>&1 \
|
|
|
|
RUN: | FileCheck %s -check-prefix ERROR
|
|
|
|
|
|
|
|
RUN: not llvm-nm -D %p/Inputs/trivial-object-test.coff-i386 2>&1 \
|
|
|
|
RUN: | FileCheck %s -check-prefix ERROR
|
|
|
|
|
|
|
|
ERROR: File format has no dynamic symbol table.
|