blob: 16b0d773e5a89ebd2d1e67fd2f7f8e862caff7e9 [file] [log] [blame]
Michael J. Spencerd955cf22011-10-17 17:13:05 +00001RUN: llvm-objdump -t %p/TestObjectFiles/trivial-object-test.coff-i386 \
2RUN: | FileCheck %s -check-prefix COFF-i386
3RUN: llvm-objdump -t %p/TestObjectFiles/trivial-object-test.elf-i386 \
4RUN: | FileCheck %s -check-prefix ELF-i386
5
Michael J. Spencer22ff0f32011-10-18 19:32:17 +00006COFF-i386: trivial-object-test.coff-i386: file format
Michael J. Spencerd955cf22011-10-17 17:13:05 +00007COFF-i386: SYMBOL TABLE:
8COFF-i386: [ 0](sec 1)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .text
9COFF-i386: AUX scnlen 0x24 nreloc 3 nlnno 0 checksum 0x0 assoc 1 comdat 0
10COFF-i386: [ 2](sec 2)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .data
11COFF-i386: AUX scnlen 0xd nreloc 0 nlnno 0 checksum 0x0 assoc 2 comdat 0
12COFF-i386: [ 4](sec 1)(fl 0x00)(ty 200)(scl 2) (nx 0) 0x00000000 _main
13COFF-i386: [ 5](sec 2)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x00000000 L_.str
14COFF-i386: [ 6](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 _puts
15COFF-i386: [ 7](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 _SomeOtherFunction
16
Michael J. Spencer22ff0f32011-10-18 19:32:17 +000017ELF-i386: trivial-object-test.elf-i386: file format
Michael J. Spencerd955cf22011-10-17 17:13:05 +000018ELF-i386: SYMBOL TABLE:
19ELF-i386: 00000000 l df *ABS* 00000000 trivial-object-test.s
20ELF-i386: 00000000 l d .text 00000000 .text
21ELF-i386: 00000024 l d .rodata.str1.1 00000000 .rodata.str1.1
22ELF-i386: 00000031 l d .note.GNU-stack 00000000 .note.GNU-stack
23ELF-i386: 00000000 g F .text 00000024 main
24ELF-i386: 00000000 *UND* 00000000 SomeOtherFunction
25ELF-i386: 00000000 *UND* 00000000 puts