blob: 71955e0d82354562598addc077efb57f7d5b24b5 [file] [log] [blame]
Eric Christopher9cad53c2013-04-03 18:31:38 +00001RUN: llvm-readobj -t %p/Inputs/trivial.obj.coff-i386 \
2RUN: | FileCheck %s -check-prefix COFF
3RUN: llvm-readobj -t %p/Inputs/trivial.obj.elf-i386 \
4RUN: | FileCheck %s -check-prefix ELF
5
6COFF: Symbols [
7COFF-NEXT: Symbol {
Rui Ueyamaf078eff2014-03-18 23:37:53 +00008COFF-NEXT: Name: @comp.id
9COFF-NEXT: Value: 14766605
David Majnemerf4dc4562014-09-20 00:25:06 +000010COFF-NEXT: Section: IMAGE_SYM_ABSOLUTE (-1)
Rui Ueyamaf078eff2014-03-18 23:37:53 +000011COFF-NEXT: BaseType: Null (0x0)
12COFF-NEXT: ComplexType: Null (0x0)
13COFF-NEXT: StorageClass: Static (0x3)
14COFF-NEXT: AuxSymbolCount: 0
15COFF-NEXT: }
16COFF-NEXT: Symbol {
17COFF-NEXT: Name: @feat.00
18COFF-NEXT: Value: 2147484049
David Majnemerf4dc4562014-09-20 00:25:06 +000019COFF-NEXT: Section: IMAGE_SYM_ABSOLUTE (-1)
Rui Ueyamaf078eff2014-03-18 23:37:53 +000020COFF-NEXT: BaseType: Null (0x0)
21COFF-NEXT: ComplexType: Null (0x0)
22COFF-NEXT: StorageClass: Static (0x3)
23COFF-NEXT: AuxSymbolCount: 0
24COFF-NEXT: }
25COFF-NEXT: Symbol {
Eric Christopher9cad53c2013-04-03 18:31:38 +000026COFF-NEXT: Name: .text
27COFF-NEXT: Value: 0
28COFF-NEXT: Section: .text (1)
29COFF-NEXT: BaseType: Null (0x0)
30COFF-NEXT: ComplexType: Null (0x0)
31COFF-NEXT: StorageClass: Static (0x3)
32COFF-NEXT: AuxSymbolCount: 1
33COFF-NEXT: AuxSectionDef {
34COFF-NEXT: Length: 22
35COFF-NEXT: RelocationCount: 3
36COFF-NEXT: LineNumberCount: 0
37COFF-NEXT: Checksum: 0x0
38COFF-NEXT: Number: 1
39COFF-NEXT: Selection: 0x0
Eric Christopher9cad53c2013-04-03 18:31:38 +000040COFF-NEXT: }
41COFF-NEXT: }
42
43ELF: Symbols [
44ELF-NEXT: Symbol {
Rafael Espindola7c346c22013-06-05 20:33:54 +000045ELF-NEXT: Name: (0)
46ELF-NEXT: Value: 0x0
47ELF-NEXT: Size: 0
48ELF-NEXT: Binding: Local (0x0)
49ELF-NEXT: Type: None (0x0)
50ELF-NEXT: Other: 0
Rafael Espindolacfee7ef2014-03-24 05:00:34 +000051ELF-NEXT: Section: Undefined (0x0)
Rafael Espindola7c346c22013-06-05 20:33:54 +000052ELF-NEXT: }
53ELF-NEXT: Symbol {
Eric Christopher9cad53c2013-04-03 18:31:38 +000054ELF-NEXT: Name: trivial.ll (1)
55ELF-NEXT: Value: 0x0
56ELF-NEXT: Size: 0
57ELF-NEXT: Binding: Local (0x0)
58ELF-NEXT: Type: File (0x4)
59ELF-NEXT: Other: 0
Rafael Espindolacfee7ef2014-03-24 05:00:34 +000060ELF-NEXT: Section: Absolute (0xFFF1)
Eric Christopher9cad53c2013-04-03 18:31:38 +000061ELF-NEXT: }
62ELF-NEXT: Symbol {
63ELF-NEXT: Name: .L.str (39)
64ELF-NEXT: Value: 0x0
65ELF-NEXT: Size: 13
66ELF-NEXT: Binding: Local (0x0)
67ELF-NEXT: Type: Object (0x1)
68ELF-NEXT: Other: 0
69ELF-NEXT: Section: .rodata.str1.1 (0x5)
70ELF-NEXT: }