brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 5612104 Raw
62 lines · yaml
1## Check that i386 executables can be opened in both ABI modes.2## I386 executables are special in the sense that the PECOFF object3## file plugin returns two architectures for them, i386 and i686, which4## causes more elaborate comparisons to be run against the Platform plugin's5## architecture list. Check that this is accepted despite potential mismatches6## in the environment part of the triple.7 8# RUN: yaml2obj %s -o %t9 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 %s14 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 %s19 20# CHECK-LABEL: image list --triple --basename21# CHECK-NEXT: i386-pc-windows-[[ABI]] [[FILENAME]]22 23--- !COFF24OptionalHeader:25  AddressOfEntryPoint: 448026  ImageBase:       26843545627  SectionAlignment: 409628  FileAlignment:   51229  MajorOperatingSystemVersion: 630  MinorOperatingSystemVersion: 031  MajorImageVersion: 032  MinorImageVersion: 033  MajorSubsystemVersion: 634  MinorSubsystemVersion: 035  Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI36  DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]37  SizeOfStackReserve: 104857638  SizeOfStackCommit: 409639  SizeOfHeapReserve: 104857640  SizeOfHeapCommit: 409641header:42  Machine:         IMAGE_FILE_MACHINE_I38643  Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_32BIT_MACHINE ]44sections:45  - Name:            .text46    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]47    VirtualAddress:  409648    VirtualSize:     6449    SectionData:     DEADBEEFBAADF00D50  - Name:            .data51    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]52    VirtualAddress:  819253    VirtualSize:     6454    SectionData:     DEADBEEFBAADF00D55  - Name:            .debug_info56    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]57    VirtualAddress:  1638458    VirtualSize:     6459    SectionData:     DEADBEEFBAADF00D60symbols:         []61...62