mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
95eb91571b
Changed the format call to match the surrounding code. Previously it was printing an unsigned int while the return type being printed was long unsigned int or wider. This caused problems for big-endian systems which were discovered on mips64. Also, the printed address had less characters than it should because the character count was directly obtained from the number of bytes in the address. The tests were adapted to fit this fix and now use longer addresses. Patch by Milos Stojanovic. Differential Revision: https://reviews.llvm.org/D53403 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344818 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
950 B
Plaintext
34 lines
950 B
Plaintext
# RUN: yaml2obj %s > %t
|
|
# RUN: llvm-objdump -f %t | FileCheck %s
|
|
# RUN: llvm-objdump -file-headers %t | FileCheck %s
|
|
|
|
!COFF
|
|
header: !Header
|
|
Machine: IMAGE_FILE_MACHINE_I386
|
|
Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ]
|
|
OptionalHeader:
|
|
AddressOfEntryPoint: 0x123456
|
|
# Unfortunately, all these flags are mandatory to set AddressOfEntryPoint.
|
|
# All the values are randomly picked. They can't interfere in what
|
|
# we are testing here.
|
|
SizeOfHeapCommit: 1024
|
|
SizeOfHeapReserve: 1024
|
|
SizeOfStackCommit: 1024
|
|
SizeOfStackReserve: 1024
|
|
DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE ]
|
|
Subsystem: IMAGE_SUBSYSTEM_NATIVE
|
|
MinorSubsystemVersion: 1
|
|
MajorSubsystemVersion: 1
|
|
MinorImageVersion: 1
|
|
MajorImageVersion: 1
|
|
MinorOperatingSystemVersion: 1
|
|
MajorOperatingSystemVersion: 1
|
|
FileAlignment: 8
|
|
SectionAlignment: 8
|
|
ImageBase: 0x12
|
|
sections:
|
|
symbols:
|
|
|
|
# CHECK: architecture: i386
|
|
# CHECK: start address: 0x00123456
|