1 # RUN: yaml2obj %s > %t.in.exe
3 # RUN: llvm-objdump -s %t.in.exe | FileCheck %s --check-prefixes=CONTENTS,CONTENTS-PRE
4 # RUN: llvm-readobj --sections %t.in.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-PRE
5 # RUN: llvm-objcopy -R .rdata %t.in.exe %t.out.exe
6 # RUN: llvm-objdump -s %t.out.exe | FileCheck %s --check-prefixes=CONTENTS,CONTENTS-POST
7 # RUN: llvm-readobj --sections %t.out.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-POST
9 # CONTENTS: Contents of section .buildid:
10 # CONTENTS-NEXT: {{.*}} 00000000 42ee405c 00000000 02000000
11 # CONTENTS-PRE-NEXT: {{.*}} 19000000 1c300000 1c080000 52534453
12 # CONTENTS-POST-NEXT: {{.*}} 19000000 1c300000 1c040000 52534453
13 # CONTENTS-NEXT: {{.*}} c1330757 2839a337 4c4c4420 5044422e
14 # CONTENTS-NEXT: {{.*}} 01000000 00
16 # SECTIONS: Name: .buildid
17 # SECTIONS-NEXT: VirtualSize:
18 # SECTIONS-NEXT: VirtualAddress:
19 # SECTIONS-NEXT: RawDataSize:
20 # SECTIONS-NEXT-PRE: PointerToRawData: 0x800
21 # SECTIONS-NEXT-POST: PointerToRawData: 0x400
25 AddressOfEntryPoint: 4096
27 SectionAlignment: 4096
29 MajorOperatingSystemVersion: 6
30 MinorOperatingSystemVersion: 0
33 MajorSubsystemVersion: 6
34 MinorSubsystemVersion: 0
35 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
36 DLLCharacteristics: [ ]
37 SizeOfStackReserve: 1048576
38 SizeOfStackCommit: 4096
39 SizeOfHeapReserve: 1048576
40 SizeOfHeapCommit: 4096
42 RelativeVirtualAddress: 12288
45 Machine: IMAGE_FILE_MACHINE_AMD64
52 SectionData: C3909090909090909090909090909090
57 SectionData: FFFFFFFF00000000FFFFFFFF00000000
62 SectionData: 0000000042EE405C0000000002000000190000001C3000001C08000052534453C13307572839A3374C4C44205044422E0100000000