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: OptionalHeaderSize: 0 14CHECK-NEXT: Characteristics [ (0x0) 15CHECK-NEXT: ] 16CHECK-NEXT: } 17CHECK-NEXT: Sections [ 18CHECK-NEXT: Section { 19CHECK-NEXT: Number: 1 20CHECK-NEXT: Name: .text (2E 74 65 78 74 00 00 00) 21CHECK-NEXT: VirtualSize: 0x0 22CHECK-NEXT: VirtualAddress: 0x0 23CHECK-NEXT: RawDataSize: 0 24CHECK-NEXT: PointerToRawData: 0x0 25CHECK-NEXT: PointerToRelocations: 0x0 26CHECK-NEXT: PointerToLineNumbers: 0x0 27CHECK-NEXT: RelocationCount: 0 28CHECK-NEXT: LineNumberCount: 0 29CHECK-NEXT: Characteristics [ (0x60500020) 30CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000) 31CHECK-NEXT: IMAGE_SCN_CNT_CODE (0x20) 32CHECK-NEXT: IMAGE_SCN_MEM_EXECUTE (0x20000000) 33CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000) 34CHECK-NEXT: ] 35CHECK-NEXT: } 36CHECK-NEXT: Section { 37CHECK-NEXT: Number: 2 38CHECK-NEXT: Name: .data (2E 64 61 74 61 00 00 00) 39CHECK-NEXT: VirtualSize: 0x0 40CHECK-NEXT: VirtualAddress: 0x0 41CHECK-NEXT: RawDataSize: 0 42CHECK-NEXT: PointerToRawData: 0x0 43CHECK-NEXT: PointerToRelocations: 0x0 44CHECK-NEXT: PointerToLineNumbers: 0x0 45CHECK-NEXT: RelocationCount: 0 46CHECK-NEXT: LineNumberCount: 0 47CHECK-NEXT: Characteristics [ (0xC0500040) 48CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000) 49CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40) 50CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000) 51CHECK-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000) 52CHECK-NEXT: ] 53CHECK-NEXT: } 54CHECK-NEXT: Section { 55CHECK-NEXT: Number: 3 56CHECK-NEXT: Name: .bss (2E 62 73 73 00 00 00 00) 57CHECK-NEXT: VirtualSize: 0x0 58CHECK-NEXT: VirtualAddress: 0x0 59CHECK-NEXT: RawDataSize: 0 60CHECK-NEXT: PointerToRawData: 0x0 61CHECK-NEXT: PointerToRelocations: 0x0 62CHECK-NEXT: PointerToLineNumbers: 0x0 63CHECK-NEXT: RelocationCount: 0 64CHECK-NEXT: LineNumberCount: 0 65CHECK-NEXT: Characteristics [ (0xC0500080) 66CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000) 67CHECK-NEXT: IMAGE_SCN_CNT_UNINITIALIZED_DATA (0x80) 68CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000) 69CHECK-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000) 70CHECK-NEXT: ] 71CHECK-NEXT: } 72CHECK-NEXT: ] 73CHECK-NEXT: Relocations [ 74CHECK-NEXT: ] 75CHECK-NEXT: Symbols [ 76CHECK-NEXT: Symbol { 77CHECK-NEXT: Name: .file 78CHECK-NEXT: Value: 0 79CHECK-NEXT: Section: IMAGE_SYM_DEBUG (-2) 80CHECK-NEXT: BaseType: Null (0x0) 81CHECK-NEXT: ComplexType: Null (0x0) 82CHECK-NEXT: StorageClass: File (0x67) 83CHECK-NEXT: AuxSymbolCount: 1 84CHECK-NEXT: AuxFileRecord { 85CHECK-NEXT: FileName: fake 86CHECK-NEXT: } 87CHECK-NEXT: } 88CHECK-NEXT: Symbol { 89CHECK-NEXT: Name: .text 90CHECK-NEXT: Value: 0 91CHECK-NEXT: Section: .text (1) 92CHECK-NEXT: BaseType: Null (0x0) 93CHECK-NEXT: ComplexType: Null (0x0) 94CHECK-NEXT: StorageClass: Static (0x3) 95CHECK-NEXT: AuxSymbolCount: 1 96CHECK-NEXT: AuxSectionDef { 97CHECK-NEXT: Length: 0 98CHECK-NEXT: RelocationCount: 0 99CHECK-NEXT: LineNumberCount: 0 100CHECK-NEXT: Checksum: 0x0 101CHECK-NEXT: Number: 0 102CHECK-NEXT: Selection: 0x0 103CHECK-NEXT: } 104CHECK-NEXT: } 105CHECK-NEXT: Symbol { 106CHECK-NEXT: Name: .data 107CHECK-NEXT: Value: 0 108CHECK-NEXT: Section: .data (2) 109CHECK-NEXT: BaseType: Null (0x0) 110CHECK-NEXT: ComplexType: Null (0x0) 111CHECK-NEXT: StorageClass: Static (0x3) 112CHECK-NEXT: AuxSymbolCount: 1 113CHECK-NEXT: AuxSectionDef { 114CHECK-NEXT: Length: 0 115CHECK-NEXT: RelocationCount: 0 116CHECK-NEXT: LineNumberCount: 0 117CHECK-NEXT: Checksum: 0x0 118CHECK-NEXT: Number: 0 119CHECK-NEXT: Selection: 0x0 120CHECK-NEXT: } 121CHECK-NEXT: } 122CHECK-NEXT: Symbol { 123CHECK-NEXT: Name: .bss 124CHECK-NEXT: Value: 0 125CHECK-NEXT: Section: .bss (3) 126CHECK-NEXT: BaseType: Null (0x0) 127CHECK-NEXT: ComplexType: Null (0x0) 128CHECK-NEXT: StorageClass: Static (0x3) 129CHECK-NEXT: AuxSymbolCount: 1 130CHECK-NEXT: AuxSectionDef { 131CHECK-NEXT: Length: 0 132CHECK-NEXT: RelocationCount: 0 133CHECK-NEXT: LineNumberCount: 0 134CHECK-NEXT: Checksum: 0x0 135CHECK-NEXT: Number: 0 136CHECK-NEXT: Selection: 0x0 137CHECK-NEXT: } 138CHECK-NEXT: } 139CHECK-NEXT: ] 140