[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / tools / llvm-objcopy / COFF / patch-debug-dir2.test
blobc18a73a4af3b82aaf067e98ef318fb4861adbd47
1 ## Check that we successfully patch the PointerToRawData field in more than
2 ## one debug directory entry.
4 # RUN: yaml2obj %s -o %t.in.exe
6 # RUN: llvm-readobj --coff-debug-directory %t.in.exe | FileCheck %s --check-prefixes=DEBUG-DIRS,DEBUG-DIRS-PRE
7 # RUN: llvm-readobj --sections %t.in.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-PRE
8 # RUN: llvm-objcopy --remove-section .rdata %t.in.exe %t.out.exe
9 # RUN: llvm-readobj --coff-debug-directory %t.out.exe | FileCheck %s --check-prefixes=DEBUG-DIRS,DEBUG-DIRS-POST
10 # RUN: llvm-readobj --sections %t.out.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-POST
12 # DEBUG-DIRS:               AddressOfRawData: 0x3038
13 # DEBUG-DIRS-PRE-NEXT:      PointerToRawData: 0x638
14 # DEBUG-DIRS-POST-NEXT:     PointerToRawData: 0x438
16 # DEBUG-DIRS:               AddressOfRawData: 0x3051
17 # DEBUG-DIRS-PRE-NEXT:      PointerToRawData: 0x651
18 # DEBUG-DIRS-POST-NEXT:     PointerToRawData: 0x451
20 # SECTIONS:           Name: .buildid
21 # SECTIONS-NEXT:      VirtualSize:
22 # SECTIONS-NEXT:      VirtualAddress:
23 # SECTIONS-NEXT:      RawDataSize:
24 # SECTIONS-PRE-NEXT:  PointerToRawData: 0x600
25 # SECTIONS-POST-NEXT: PointerToRawData: 0x400
27 --- !COFF
28 OptionalHeader:
29   AddressOfEntryPoint: 4096
30   ImageBase:       5368709120
31   SectionAlignment: 4096
32   FileAlignment:   512
33   MajorOperatingSystemVersion: 6
34   MinorOperatingSystemVersion: 0
35   MajorImageVersion: 0
36   MinorImageVersion: 0
37   MajorSubsystemVersion: 6
38   MinorSubsystemVersion: 0
39   Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI
40   DLLCharacteristics: [  ]
41   SizeOfStackReserve: 1048576
42   SizeOfStackCommit: 4096
43   SizeOfHeapReserve: 1048576
44   SizeOfHeapCommit: 4096
45   Debug:
46     RelativeVirtualAddress: 12288
47     Size:            56
48 header:
49   Machine:         IMAGE_FILE_MACHINE_AMD64
50   Characteristics: [  ]
51 sections:
52   - Name:            .text
53     Characteristics: [  ]
54     VirtualAddress:  4096
55     VirtualSize:     1
56     SectionData:     C3
57   - Name:            .rdata
58     Characteristics: [  ]
59     VirtualAddress:  8192
60     VirtualSize:     32
61     SectionData:     FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF0000000000000000
62   - Name:            .buildid
63     Characteristics: [  ]
64     VirtualAddress:  12288
65     VirtualSize:     85
66     SectionData:     0000000046C7A65E00000000020000001900000038300000380600000000000046C7A65E000000001400000004000000513000005106000052534453B3411F5F27A80D2A4C4C44205044422E010000000001000000
67 symbols:
68 ...