1 ## Check that i386 executables can be opened in both ABI modes.
2 ## I386 executables are special in the sense that the PECOFF object
3 ## file plugin returns two architectures for them, i386 and i686, which
4 ## causes more elaborate comparisons to be run against the Platform plugin's
5 ## architecture list. Check that this is accepted despite potential mismatches
6 ## in the environment part of the triple.
8 # RUN: yaml2obj %s -o %t
10 ## Default ABI is msvc:
11 # RUN: %lldb -O "settings set plugin.object-file.pe-coff.abi msvc" \
12 # RUN: -f %t -o "image list --triple --basename" -o exit | \
13 # RUN: FileCheck -DABI=msvc -DFILENAME=%basename_t.tmp %s
15 ## Default ABI is gnu:
16 # RUN: %lldb -O "settings set plugin.object-file.pe-coff.abi gnu" \
17 # RUN: -f %t -o "image list --triple --basename" -o exit | \
18 # RUN: FileCheck -DABI=gnu -DFILENAME=%basename_t.tmp %s
20 # CHECK-LABEL: image list --triple --basename
21 # CHECK-NEXT: i386-pc-windows-[[ABI]] [[FILENAME]]
25 AddressOfEntryPoint: 4480
27 SectionAlignment: 4096
29 MajorOperatingSystemVersion: 6
30 MinorOperatingSystemVersion: 0
33 MajorSubsystemVersion: 6
34 MinorSubsystemVersion: 0
35 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
36 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
37 SizeOfStackReserve: 1048576
38 SizeOfStackCommit: 4096
39 SizeOfHeapReserve: 1048576
40 SizeOfHeapCommit: 4096
42 Machine: IMAGE_FILE_MACHINE_I386
43 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_32BIT_MACHINE ]
46 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
49 SectionData: DEADBEEFBAADF00D
51 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
54 SectionData: DEADBEEFBAADF00D
56 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
59 SectionData: DEADBEEFBAADF00D