1RUN: 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 5RUN: llvm-readobj -t %p/Inputs/trivial.obj.wasm \ 6RUN: | FileCheck %s -check-prefix WASM 7 8COFF: Symbols [ 9COFF-NEXT: Symbol { 10COFF-NEXT: Name: @comp.id 11COFF-NEXT: Value: 14766605 12COFF-NEXT: Section: IMAGE_SYM_ABSOLUTE (-1) 13COFF-NEXT: BaseType: Null (0x0) 14COFF-NEXT: ComplexType: Null (0x0) 15COFF-NEXT: StorageClass: Static (0x3) 16COFF-NEXT: AuxSymbolCount: 0 17COFF-NEXT: } 18COFF-NEXT: Symbol { 19COFF-NEXT: Name: @feat.00 20COFF-NEXT: Value: 2147484049 21COFF-NEXT: Section: IMAGE_SYM_ABSOLUTE (-1) 22COFF-NEXT: BaseType: Null (0x0) 23COFF-NEXT: ComplexType: Null (0x0) 24COFF-NEXT: StorageClass: Static (0x3) 25COFF-NEXT: AuxSymbolCount: 0 26COFF-NEXT: } 27COFF-NEXT: Symbol { 28COFF-NEXT: Name: .text 29COFF-NEXT: Value: 0 30COFF-NEXT: Section: .text (1) 31COFF-NEXT: BaseType: Null (0x0) 32COFF-NEXT: ComplexType: Null (0x0) 33COFF-NEXT: StorageClass: Static (0x3) 34COFF-NEXT: AuxSymbolCount: 1 35COFF-NEXT: AuxSectionDef { 36COFF-NEXT: Length: 22 37COFF-NEXT: RelocationCount: 3 38COFF-NEXT: LineNumberCount: 0 39COFF-NEXT: Checksum: 0x0 40COFF-NEXT: Number: 1 41COFF-NEXT: Selection: 0x0 42COFF-NEXT: } 43COFF-NEXT: } 44 45ELF: Symbols [ 46ELF-NEXT: Symbol { 47ELF-NEXT: Name: (0) 48ELF-NEXT: Value: 0x0 49ELF-NEXT: Size: 0 50ELF-NEXT: Binding: Local (0x0) 51ELF-NEXT: Type: None (0x0) 52ELF-NEXT: Other: 0 53ELF-NEXT: Section: Undefined (0x0) 54ELF-NEXT: } 55ELF-NEXT: Symbol { 56ELF-NEXT: Name: trivial.ll (1) 57ELF-NEXT: Value: 0x0 58ELF-NEXT: Size: 0 59ELF-NEXT: Binding: Local (0x0) 60ELF-NEXT: Type: File (0x4) 61ELF-NEXT: Other: 0 62ELF-NEXT: Section: Absolute (0xFFF1) 63ELF-NEXT: } 64ELF-NEXT: Symbol { 65ELF-NEXT: Name: .L.str (39) 66ELF-NEXT: Value: 0x0 67ELF-NEXT: Size: 13 68ELF-NEXT: Binding: Local (0x0) 69ELF-NEXT: Type: Object (0x1) 70ELF-NEXT: Other: 0 71ELF-NEXT: Section: .rodata.str1.1 (0x5) 72ELF-NEXT: } 73 74WASM: Symbols [ 75WASM-NEXT: Symbol { 76WASM-NEXT: Name: main 77WASM-NEXT: Type: FUNCTION (0x0) 78WASM-NEXT: Flags: 0x0 79WASM-NEXT: } 80WASM-NEXT: Symbol { 81WASM-NEXT: Name: .L.str 82WASM-NEXT: Type: DATA (0x1) 83WASM-NEXT: Flags: 0x2 84WASM-NEXT: } 85WASM-NEXT: Symbol { 86WASM-NEXT: Name: puts 87WASM-NEXT: Type: FUNCTION (0x0) 88WASM-NEXT: Flags: 0x10 89WASM-NEXT: } 90WASM-NEXT: Symbol { 91WASM-NEXT: Name: SomeOtherFunction 92WASM-NEXT: Type: FUNCTION (0x0) 93WASM-NEXT: Flags: 0x10 94WASM-NEXT: } 95WASM-NEXT: ] 96