3 # RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.obj
5 # RUN: lld-link -lldmingw -debug:dwarf -build-id -out:%t.exe -entry:mainfunc -subsystem:console %t.obj
6 # RUN: llvm-readobj --sections %t.exe | FileCheck %s -check-prefix SECTIONS
7 # RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck %s -check-prefix RELOCS
8 # RUN: llvm-readobj --file-headers %t.exe | FileCheck %s -check-prefix HEADERS
9 # RUN: llvm-readobj --coff-debug-directory %t.exe | FileCheck %s -check-prefix DEBUG
12 # SECTIONS-NEXT: Name: .buildid (2E 62 75 69 6C 64 69 64)
13 # SECTIONS-NEXT: VirtualSize: 0x35
14 # SECTIONS-NEXT: VirtualAddress: 0x3000
16 # SECTIONS-NEXT: Name: .data (2E 64 61 74 61 00 00 00)
17 # SECTIONS-NEXT: VirtualSize: 0x8
18 # SECTIONS-NEXT: VirtualAddress: 0x4000
21 # RELOCS-NEXT: Entry {
22 # RELOCS-NEXT: Type: DIR64
23 # RELOCS-NEXT: Address: 0x4000
25 # RELOCS-NEXT: Entry {
26 # RELOCS-NEXT: Type: ABSOLUTE
27 # RELOCS-NEXT: Address: 0x4000
31 # HEADERS: DebugRVA: 0x3000
32 # HEADERS: DebugSize: 0x1C
34 # DEBUG: DebugDirectory [
36 # DEBUG: Type: CodeView (0x2)
37 # DEBUG: SizeOfData: 0x19
38 # DEBUG: AddressOfRawData: 0x301C
39 # DEBUG: PointerToRawData: 0x81C
57 .section .debug_info,"dr"