Fixed ObjectFile functions:
[oota-llvm.git] / test / Object / objdump-symbol-table.test
1 RUN: llvm-objdump -t %p/Inputs/trivial-object-test.coff-i386 \
2 RUN:              | FileCheck %s -check-prefix COFF-i386
3 RUN: llvm-objdump -t %p/Inputs/trivial-object-test.elf-i386 \
4 RUN:              | FileCheck %s -check-prefix ELF-i386
5 RUN: llvm-objdump -t %p/Inputs/trivial-object-test.macho-i386 \
6 RUN:              | FileCheck %s -check-prefix macho-i386
7
8 COFF-i386: trivial-object-test.coff-i386:     file format
9 COFF-i386: SYMBOL TABLE:
10 COFF-i386: [  0](sec  1)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .text
11 COFF-i386: AUX scnlen 0x24 nreloc 3 nlnno 0 checksum 0x0 assoc 1 comdat 0
12 COFF-i386: [  2](sec  2)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .data
13 COFF-i386: AUX scnlen 0xd nreloc 0 nlnno 0 checksum 0x0 assoc 2 comdat 0
14 COFF-i386: [  4](sec  1)(fl 0x00)(ty 200)(scl   2) (nx 0) 0x00000000 _main
15 COFF-i386: [  5](sec  2)(fl 0x00)(ty   0)(scl   3) (nx 0) 0x00000000 L_.str
16 COFF-i386: [  6](sec  0)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000 _puts
17 COFF-i386: [  7](sec  0)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000 _SomeOtherFunction
18
19 ELF-i386: trivial-object-test.elf-i386:     file format
20 ELF-i386: SYMBOL TABLE:
21 ELF-i386: 00000000 l    df *ABS*  00000000 trivial-object-test.s
22 ELF-i386: 00000000 l    d  .text  00000000 .text
23 ELF-i386: 00000024 l    d  .rodata.str1.1 00000000 .rodata.str1.1
24 ELF-i386: 00000031 l    d  .note.GNU-stack        00000000 .note.GNU-stack
25 ELF-i386: 00000000 g     F .text  00000024 main
26 ELF-i386: 00000000         *UND*  00000000 SomeOtherFunction
27 ELF-i386: 00000000         *UND*  00000000 puts
28
29 macho-i386: trivial-object-test.macho-i386:        file format Mach-O 32-bit i386
30 macho-i386: SYMBOL TABLE:
31 macho-i386: 00000000 g     F __TEXT,__text  00000024 _main
32 macho-i386: 00000000         *UND*  00000000 _SomeOtherFunction
33 macho-i386: 00000000         *UND*  00000000 _puts