1RUN: llvm-readobj --file-headers --sections --symbols --relocations %p/Inputs/bigobj.coff-x86-64 | FileCheck %s 2 3CHECK: File: {{(.*[/\\])?}}bigobj.coff-x86-64 4CHECK-NEXT: Format: COFF-x86-64 5CHECK-NEXT: Arch: x86_64 6CHECK-NEXT: AddressSize: 64bit 7CHECK-NEXT: ImageFileHeader { 8CHECK-NEXT: Machine: IMAGE_FILE_MACHINE_AMD64 (0x8664) 9CHECK-NEXT: SectionCount: 3 10CHECK-NEXT: TimeDateStamp: 1970-01-01 00:00:00 (0x0) 11CHECK-NEXT: PointerToSymbolTable: 0xB0 12CHECK-NEXT: SymbolCount: 8 13CHECK-NEXT: StringTableSize: 4 14CHECK-NEXT: OptionalHeaderSize: 0 15CHECK-NEXT: Characteristics [ (0x0) 16CHECK-NEXT: ] 17CHECK-NEXT: } 18CHECK-NEXT: Sections [ 19CHECK-NEXT: Section { 20CHECK-NEXT: Number: 1 21CHECK-NEXT: Name: .text (2E 74 65 78 74 00 00 00) 22CHECK-NEXT: VirtualSize: 0x0 23CHECK-NEXT: VirtualAddress: 0x0 24CHECK-NEXT: RawDataSize: 0 25CHECK-NEXT: PointerToRawData: 0x0 26CHECK-NEXT: PointerToRelocations: 0x0 27CHECK-NEXT: PointerToLineNumbers: 0x0 28CHECK-NEXT: RelocationCount: 0 29CHECK-NEXT: LineNumberCount: 0 30CHECK-NEXT: Characteristics [ (0x60500020) 31CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000) 32CHECK-NEXT: IMAGE_SCN_CNT_CODE (0x20) 33CHECK-NEXT: IMAGE_SCN_MEM_EXECUTE (0x20000000) 34CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000) 35CHECK-NEXT: ] 36CHECK-NEXT: } 37CHECK-NEXT: Section { 38CHECK-NEXT: Number: 2 39CHECK-NEXT: Name: .data (2E 64 61 74 61 00 00 00) 40CHECK-NEXT: VirtualSize: 0x0 41CHECK-NEXT: VirtualAddress: 0x0 42CHECK-NEXT: RawDataSize: 0 43CHECK-NEXT: PointerToRawData: 0x0 44CHECK-NEXT: PointerToRelocations: 0x0 45CHECK-NEXT: PointerToLineNumbers: 0x0 46CHECK-NEXT: RelocationCount: 0 47CHECK-NEXT: LineNumberCount: 0 48CHECK-NEXT: Characteristics [ (0xC0500040) 49CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000) 50CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40) 51CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000) 52CHECK-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000) 53CHECK-NEXT: ] 54CHECK-NEXT: } 55CHECK-NEXT: Section { 56CHECK-NEXT: Number: 3 57CHECK-NEXT: Name: .bss (2E 62 73 73 00 00 00 00) 58CHECK-NEXT: VirtualSize: 0x0 59CHECK-NEXT: VirtualAddress: 0x0 60CHECK-NEXT: RawDataSize: 0 61CHECK-NEXT: PointerToRawData: 0x0 62CHECK-NEXT: PointerToRelocations: 0x0 63CHECK-NEXT: PointerToLineNumbers: 0x0 64CHECK-NEXT: RelocationCount: 0 65CHECK-NEXT: LineNumberCount: 0 66CHECK-NEXT: Characteristics [ (0xC0500080) 67CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000) 68CHECK-NEXT: IMAGE_SCN_CNT_UNINITIALIZED_DATA (0x80) 69CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000) 70CHECK-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000) 71CHECK-NEXT: ] 72CHECK-NEXT: } 73CHECK-NEXT: ] 74CHECK-NEXT: Relocations [ 75CHECK-NEXT: ] 76CHECK-NEXT: Symbols [ 77CHECK-NEXT: Symbol { 78CHECK-NEXT: Name: .file 79CHECK-NEXT: Value: 0 80CHECK-NEXT: Section: IMAGE_SYM_DEBUG (-2) 81CHECK-NEXT: BaseType: Null (0x0) 82CHECK-NEXT: ComplexType: Null (0x0) 83CHECK-NEXT: StorageClass: File (0x67) 84CHECK-NEXT: AuxSymbolCount: 1 85CHECK-NEXT: AuxFileRecord { 86CHECK-NEXT: FileName: fake 87CHECK-NEXT: } 88CHECK-NEXT: } 89CHECK-NEXT: Symbol { 90CHECK-NEXT: Name: .text 91CHECK-NEXT: Value: 0 92CHECK-NEXT: Section: .text (1) 93CHECK-NEXT: BaseType: Null (0x0) 94CHECK-NEXT: ComplexType: Null (0x0) 95CHECK-NEXT: StorageClass: Static (0x3) 96CHECK-NEXT: AuxSymbolCount: 1 97CHECK-NEXT: AuxSectionDef { 98CHECK-NEXT: Length: 0 99CHECK-NEXT: RelocationCount: 0 100CHECK-NEXT: LineNumberCount: 0 101CHECK-NEXT: Checksum: 0x0 102CHECK-NEXT: Number: 0 103CHECK-NEXT: Selection: 0x0 104CHECK-NEXT: } 105CHECK-NEXT: } 106CHECK-NEXT: Symbol { 107CHECK-NEXT: Name: .data 108CHECK-NEXT: Value: 0 109CHECK-NEXT: Section: .data (2) 110CHECK-NEXT: BaseType: Null (0x0) 111CHECK-NEXT: ComplexType: Null (0x0) 112CHECK-NEXT: StorageClass: Static (0x3) 113CHECK-NEXT: AuxSymbolCount: 1 114CHECK-NEXT: AuxSectionDef { 115CHECK-NEXT: Length: 0 116CHECK-NEXT: RelocationCount: 0 117CHECK-NEXT: LineNumberCount: 0 118CHECK-NEXT: Checksum: 0x0 119CHECK-NEXT: Number: 0 120CHECK-NEXT: Selection: 0x0 121CHECK-NEXT: } 122CHECK-NEXT: } 123CHECK-NEXT: Symbol { 124CHECK-NEXT: Name: .bss 125CHECK-NEXT: Value: 0 126CHECK-NEXT: Section: .bss (3) 127CHECK-NEXT: BaseType: Null (0x0) 128CHECK-NEXT: ComplexType: Null (0x0) 129CHECK-NEXT: StorageClass: Static (0x3) 130CHECK-NEXT: AuxSymbolCount: 1 131CHECK-NEXT: AuxSectionDef { 132CHECK-NEXT: Length: 0 133CHECK-NEXT: RelocationCount: 0 134CHECK-NEXT: LineNumberCount: 0 135CHECK-NEXT: Checksum: 0x0 136CHECK-NEXT: Number: 0 137CHECK-NEXT: Selection: 0x0 138CHECK-NEXT: } 139CHECK-NEXT: } 140CHECK-NEXT: ] 141